I\'d like to start a Cocoa app with a ViewController
just like the iOS \"Single View App\" template, but there is no such template (is there a public / open source
On OS X NSViewController
isn't as often used as UIViewController
on iOS. One of the reasons is that it's not really useful and lacks a lot of the nice features of UIViewController
. There are only a couple of situations where you really have to use them, like when using an NSPopover.
There are several ways to structure your OS X code. One of them is using NSWindowController. You can think of NSWindowController
as the equivalent of UIViewController
on iOS.