HIView-NSView

Last Revision:
Version 1.5, 2007-05-29
Upgraded to use NSViewController.
(Full Revision History)
Build Requirements:
Xcode 3.0 (or the latest)
Runtime Requirements:
Mac OS X 10.5

Demonstrates how to embed an NSView within an HIView in a Carbon window. This Carbon sample includes both a Carbon and a Cocoa nib file. The Cocoa nib, WebView.nib, contains a view hierarchy embedded in a top level NSView. After a new Carbon window is created, an NSViewController is used to load the Cocoa nib and get a reference to the top level view. The NSView hierarchy is then embedded in an HICocoaView. All the connections made in Interface Builder are preserved. NSViews can be created manually or with Interface Builder.