Version: 1.0

Posted: 2007-06-11

Build Requirements: Xcode 3.0 (or the latest)

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample (“ViewController.zip”, 1.95M)
Download Sample (“ViewController.dmg”, 2.23M)



Description

"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, QTMovieView and QCView.

Document Revision History

Date Notes
2007-06-11Demonstrates how to use "NSViewController".

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.