Oct 28 2017
macOS Storyboard Segues
The other day I had what I thought a very simple request: I wanted to replace one viewcontroller with another in the same window. This is something that on iOS (particularly iPhones) happens all the time; but somewhat to my suprise, macOS does not have an obvious out-of-the-box solution for this. This turns out to […]
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