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 […]
Aug 7 2020
NSOutlineView: Saving expansion status
(This is not the promised Part III of my previous series. Which is not fully functional and needs an overhaul, but right now, I am lacking time.) In most cases, users expect to find outline views as they left them. So I needed a different solution. Whether an item is expanded or not is, strictly […]
By Extelligent Cocoa • Application Design, Interface • • Tags: NSOutlineView