Version: 1.1

Posted: 2007-06-11

Build Requirements: Xcode 3.0 (or the latest)

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample Code (“MenuItemView.zip”, 808.8K)



Description

"MenuItemView" is a Cocoa application that demonstrates embedding NSViews inside NSMenuItems. This sample is intended to show how this is done with various user interface elements such as controls as well as the application's menu bar.

Document Revision History

Date Notes
2007-06-11Menu item for label colors: tracking/drawing moved to drawRect method.
2007-03-01Demonstrates embedding an NSView inside a menu item or NSMenuItem.