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 […]