Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
HIView-NSView
Last Revision: | |
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.
Copyright © 2007 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2007-05-29