NSMenu Class Reference
PDF
Overview
Tasks
Managing the Menu Bar
Creating an NSMenu Object
Adding and Removing Menu Items
Finding Menu Items
Finding Indices of Menu Items
Managing Submenus
Enabling and Disabling Menu Items
Getting and Setting the Menu Font
Handling Keyboard Equivalents
Simulating Mouse Clicks
Managing the Title
Configuring Menu Size
Getting Menu Properties
Managing Menu Change Notifications
Displaying Contextual Menus
Displaying Context-Sensitive Help
Managing Display of the State Column
Controlling Allocation Zones
Handling Highlighting
Managing the Delegate
Handling Tracking
Deprecated Methods
Class Methods
menuBarVisible
menuZone
popUpContextMenu:withEvent:forView:
popUpContextMenu:withEvent:forView:withFont:
setMenuBarVisible:
Instance Methods
addItem:
addItemWithTitle:action:keyEquivalent:
allowsContextMenuPlugIns
autoenablesItems
cancelTracking
cancelTrackingWithoutAnimation
delegate
font
helpRequested:
highlightedItem
indexOfItem:
indexOfItemWithRepresentedObject:
indexOfItemWithSubmenu:
indexOfItemWithTag:
indexOfItemWithTarget:andAction:
indexOfItemWithTitle:
initWithTitle:
insertItem:atIndex:
insertItemWithTitle:action:keyEquivalent:atIndex:
isTornOff
itemArray
itemAtIndex:
itemChanged:
itemWithTag:
itemWithTitle:
menuBarHeight
menuChangedMessagesEnabled
minimumWidth
numberOfItems
performActionForItemAtIndex:
performKeyEquivalent:
popUpMenuPositioningItem:atLocation:inView:
propertiesToUpdate
removeAllItems
removeItem:
removeItemAtIndex:
setAllowsContextMenuPlugIns:
setAutoenablesItems:
setDelegate:
setFont:
setMenuChangedMessagesEnabled:
setMinimumWidth:
setShowsStateColumn:
setSubmenu:forItem:
setSupermenu:
setTitle:
showsStateColumn
size
submenuAction:
supermenu
title
update
Constants
NSMenuProperties
Notifications
NSMenuDidAddItemNotification
NSMenuDidChangeItemNotification
NSMenuDidBeginTrackingNotification
NSMenuDidEndTrackingNotification
NSMenuDidRemoveItemNotification
NSMenuDidSendActionNotification
NSMenuWillSendActionNotification
Appendix A: Deprecated NSMenu Methods
Deprecated in Mac OS X v10.2
setMenuZone:
attachedMenu
contextMenuRepresentation
isAttached
locationForSubmenu:
menuRepresentation
setContextMenuRepresentation:
setMenuRepresentation:
setTearOffMenuRepresentation:
sizeToFit
tearOffMenuRepresentation
Revision History
Index
COMPANION GUIDE
Application Menu and Pop-up List Programming Topics for Cocoa