As I continue adding features for my upcoming app I’m starting to work with NSEvents to add actions to user interaction. I’ve been amazed at how fast is to do this in Swift. For instance, detecting where the user presses a button in your window, and then converting it to the coordinate system of a …
Monthly Archives: December 2015
Switching NSViewControllers from NSWindowController
This has taken quite some time to crack as there was not that much available information online. I wanted a very simple way to change the NSViewController of a window on the fly by using code. The solution I ended up with is quite easy, on the NSWindowController I load the default NSViewController by typing …
Continue reading “Switching NSViewControllers from NSWindowController”