Oct 28 2017
macOS Storyboard Segues
The other day I had what I thought a very simple request: I wanted to replace one viewcontroller with another in the same window. This is something that on iOS (particularly iPhones) happens all the time; but somewhat to my suprise, macOS does not have an obvious out-of-the-box solution for this. This turns out to […]
Aug 9 2018
Protocols and Equality
I recently found myself in the position where I am happily using a protocol, and needed to work with equality in a context that can be summed up as: var currentObject: MyProtocol = Thing1() { willSet{ if newValue != currentObject { //perform costly operation } } (But really, equality is everywhere. Want to get the […]
By Extelligent Cocoa • Application Design, Design Patterns •