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 (“MenuItemView.zip”, 808.8K)
Download Sample (“MenuItemView.dmg”, 856.3K)



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.

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.