Interface

This is an IB bug that, well, bugs me: If you add a portrait image to your asset catalogue and use it in an NSImageView, it gets rotated. The preview is fine, it’s fine if you add it to your project otherwise or load it from file; but from an asset catalogue, it fails.

Xcode 8, macOS 10.12, Swift 3.0 In Part 1 of this tutorial, we created an outlineView that, thanks to a SourceListItem protocol, was indefinitely flexible: you can have different classes on several levels, or indefinite levels (though it is probably wise to limit this programatically so you don’t nest too deep. It all depends on […]

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

(macOS 10.11; Xcode 8.0) This post deals with colouring buttons. Some of the techniques described are against Apple’s InterfaceDesign guidelines; others are simply against the rules of good taste. This post is an exploration of what is possible and will provide a handy reference in the future if I ever think ‘oh, I wish I […]