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 […]
Mar 29 2020
Saving a font to UserDefaults
(Here using macOS 13, Xcode 10, Swift 4.2, but NSFontDescriptor also exists on iOS, just substitute UIFont). The recommended way of saving a font is not to do it (a bit flippant, sorry) – but in WWDC session 223 from 2013 (Using Fonts with TextKit), the recommendation is specifically to a) not cherry-pick attributes (in […]
By Extelligent Cocoa • Interface, Wiki • • Tags: NSFont, NSFontDescriptor, NSTextField, UserDefaults