A basic example of how to use an NSViewController in an NSDocument. For more on this topic, see Chapter 31, View Swapping, in Cocoa Programming for Mac OS X.
preble/ViewControllerDemo
A basic example of how to use an NSViewController in an NSDocument.
Objective-C