Using NSViewController for managing views

"ViewController" is a Cocoa application that demonstrates how to use the NSViewController class. The NSViewController class serves roughly the same purpose of NSWindowController, but for NSView instead of NSWindow. It does the same sort of memory management of top-level objects that NSWindowController does. The sample demonstrates how to load and unload four different view controllers that contain: NSImageView, NSTableView, AVPlayerLayer and QCView.