Nov 7 2017
Proof of Concept: Enum with associated function
In Swift, functions are first class citizens The above does not come as a surprise. We’re using closures as callback handlers, and store them – frequently as optionals – save them, pass them around. I’ve used them as a variable in an enum: depending on the value of the enum, I return a different closure. […]
Nov 9 2017
NSAlert Tutorial
macOS 10.12, Xcode 9, Swift 4 In my post on macOS Storyboard Segues I said I’d look at sheets in more details, and now is as good a time as any. I meant to look at sheet segues in this post, but then I worked through all of the permutations of NSAlert, and 3500 words […]
By Extelligent Cocoa • Application Design, Interface, Tutorials • • Tags: NSAlert, NSApplication.ModalResponse, sheets, UserDefaults