cocoa
Rant: Swift, Cocoa, Target–Action, and Instance Property Initialization
As someone who spends a lot of time hanging out on Stack Overflow, I get to see first hand what traps iOS Cocoa programmers fall into. In fact, that’s why I spend a lot of time hanging out on Stack Overflow. It’s fun and instructive. But it also pains me to see people making the …
Rant: Swift, Cocoa, Target–Action, and Instance Property Initialization Read More »
The iOS Developer’s Guide to Updating an App to iOS14
Each year, like clockwork, for better or worse — sometimes, in my opinion, very much for worse — Apple releases a new version of iOS. We’re all used to the forced march of the calendar by now. In June, WWDC is held, and the new version appears in beta. In September, it goes final. And …
The iOS Developer’s Guide to Updating an App to iOS14 Read More »
Control, Target, and Action in iOS 14
The target–action pattern is one of the oldest in Cocoa, and it’s used with some of the most important interface objects, namely controls (UIControl). That includes buttons (UIButton), switches (UISwitch), segmented controls (UISegmentedControl), and many others. It is also used with UIBarButtonItem because it’s button-like even though it isn’t a control (or even a view). …