Jan 12 2017
NSPopover and storyboards
macOS 10.12, Xcode 8.0, Swift 3 Storyboard segues make it exceedingly easy to create popovers, but sometimes you want to customise your popovers a bit more, for instance make windows detachable. When building interfaces the old-fashioned way with xib files or in code, you would use the NSPopoverDelegate protocol and wire things up appropriately. Storyboards […]
Dec 27 2017
Storyboard ID Caveat
macOS 10.12, Xcode 9.2 Do not use the name of a viewController subclass as your Storyboard ID. I’ve had both ‘Storyboard […] doesn’t contain a controller with identifier ‘MyCustomController’ and the cast to MyCustomController failing randomly; in one instance a cast to NSViewController worked, but MyCustomController did not. When I set the identifier to “CustomVC” […]
By Extelligent Cocoa • Application Design, Bug Reports • • Tags: NSPopover