ViewController

Last Revision:
Version 1.1, 2011-09-08
Updated video playback to use AVFoundation. Project updated for Xcode 4.
(Full Revision History)
Build Requirements:
Xcode 4.1, Mac OS X 10.7 Lion
Runtime Requirements:
Mac OS X 10.7 Lion

"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.