I previously mentioned that I was working on a new RSS client for the Macintosh called NewsRadar. I had a prototype of many basic parts of the user interface, built using SwiftUI—Apple’s flagship user interface development framework. There are better places to learn about what SwiftUI is, but roughly the idea is to treat the view itself as a model and offload the actual rendering and interaction to the framework. SwiftUI views (which are really models, not views!) are nicely composable and their state management is handled explicitly by plumbing bidirectional bindings up and down the view hierarchy. These are all good ideas, but unfortunately one tends to run into insurmountable limitations of the framework—which in the old days of Cocoa/AppKit we might have been able to hack around.
I ended up hitting the point where I could go no further with SwiftUI, so I’ve started from scratch with AppKit, the 36-year-old object-oriented applications framework that powered NeXTSTEP and Mac OS X. Now, I am actually very comfortable with this style of coding because my previous career was as an iOS developer, and I was naturally an expert with UIKit (Apple’s original applications framework for iPhoneOS/iOS/iPadOS) which was modelled off of AppKit.
AppKit is mature, in the sense that code written 25 years ago still runs, but also in the sense that its bugs tend also to be at least 10 years old without any fixes likely in the future. But what I love about AppKit is that there is almost nothing you can’t do with it if you know the right way; it is rich with extensibility and customisability, and although it forces you to work in a somewhat ceremonious and bureaucratic way, you get in return a lot of control that is simply unavailable in more “modern” frameworks. You can develop really powerful and polished applications that don’t have any rough edges, taking advantage of all the great user interface affordances that the Macintosh platform has to offer—whereas these days I can spy a typical SwiftUI app from miles away almost as easily as I can detect the dreaded Electron apps. (Note that from macOS 26 onward, many parts of AppKit are actually backed by SwiftUI! But that is implementation, not API.) I think this will change as SwiftUI matures, but for now, AppKit is the only serious option for building an app of non-trivial complexity on the Macintosh.
Another thing I like about AppKit and Cocoa development, aside from the old familiarity, is that the books published on the topic a dozen years ago are still relevant and very inexpensive. Yes, I’m an old Objective-C programmer, and translating Objective-C to Swift is effortless to me (and, apparently, to LLMs as well).
There are many bugs and omissions in the implementation of the new design language and the “liquid glass” material in the latest developer betas, unfortunately. For example: