Dec 30 2016
Colouring buttons
(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 […]
Dec 29 2017
Assigning a button’s action – with added bug
Edited to add: This, apparently, works as intended – you need to assign the button’s _target_ with testButton.target = self. It doesn’t completely explain why the code is working under some circumstances, but it’s not a bug as such. This thoroughly spoilt my day today. I was convinced I’d gotten the ‘assign-an-action-on-the-fly’ code correctly, but […]
By Extelligent Cocoa • Bug Reports, Interface • • Tags: containerView, NSButton, storyboards