Category Archives: Development

Software development issues and solutions

Swift events

Swift does not have built-in .NET-like events. (I admit, I was used to have them in C#, although implementing the weak pattern in .NET was not the easiest job either.) Instead, in Swift there are two common patterns that developers (and even Apple) … Continue reading

Posted in Swift | Tagged , , , , , | Leave a comment

When optionals are… required

Assume you have developed a service, with methods requiring arguments, properly extracted into a interface. Then you (or your customers) would write nice clients for your service. Of course, such clients will probably be unit tested in isolation, such as … Continue reading

Posted in C# | Tagged , , , | Leave a comment

macOS milestone

As a Windows app programmer that wants to also develop native iOS and Android apps, one should learn to develop native macOS apps first! In my opinion it’s easier to learn standard Cocoa first, and only then Cocoa Touch (sharing, of course, the Foundation and other … Continue reading

Posted in Development | Tagged , , , , , | Leave a comment

App backend selection

Assuming that we want to develop a simple app – e.g. the Shopping list app example that triggered my previous post – and make it available for multiple platforms (Android, iOS, and also Web to cover other devices including Windows and macOS), how do we develop … Continue reading

Posted in Development | Tagged , , , , , | Leave a comment

Swift selectors and number of arguments

In Swift, you can create and “perform” a #selector like below (e.g. in an iOS app) and it seems to work just fine (i.e. executes the “selected” function): class Obj1 : NSObject {     var value: String?     … Continue reading

Posted in iOS, macOS, Swift | Tagged , , , , , | Leave a comment

Cherry picking through a middle branch

Let’s assume we work with git on our project. And that we have two important branches: dev – which is built and deployed automatically to a local environment; master – which is built and deployed automatically to production environment. Moreover, let’s … Continue reading

Posted in Development | Tagged , , , , | Leave a comment

DataGridComboBoxColumn.ItemsSource binding issue

The code below doesn’t work as one would expect, i.e. to allow selecting one value for each item in the DataGrid using ComboBoxes in a secondary column, even if if there is an AvailableValues property in the Window container class … Continue reading

Posted in WPF | Tagged , , , | Leave a comment