NSMenu Class Reference
PDF
Overview
Adopted Protocols
Tasks
Managing the Menu Bar
Creating an NSMenu Object
Setting Up Menu Commands
Finding Menu Items
Finding Indices of Menu Items
Managing Submenus
Enabling and Disabling Menu Items
Handling Keyboard Equivalents
Simulating Mouse Clicks
Managing the Title
Updating Menu Layout
Displaying Context-Sensitive Help
Managing Display of the State Column
Controlling Allocation Zones
Handling Highlighting
Managing the Delegate
Handling Open and Close Events
Handling Tracking
Deprecated Methods
Class Methods
menuBarVisible
menuZone
popUpContextMenu:withEvent:forView:
popUpContextMenu:withEvent:forView:withFont:
setMenuBarVisible:
setMenuZone:
Instance Methods
addItem:
addItemWithTitle:action:keyEquivalent:
attachedMenu
autoenablesItems
cancelTracking
contextMenuRepresentation
delegate
helpRequested:
highlightedItem
indexOfItem:
indexOfItemWithRepresentedObject:
indexOfItemWithSubmenu:
indexOfItemWithTag:
indexOfItemWithTarget:andAction:
indexOfItemWithTitle:
initWithTitle:
insertItem:atIndex:
insertItemWithTitle:action:keyEquivalent:atIndex:
isAttached
isTornOff
itemArray
itemAtIndex:
itemChanged:
itemWithTag:
itemWithTitle:
locationForSubmenu:
menuBarHeight
menuChangedMessagesEnabled
menuRepresentation
numberOfItems
performActionForItemAtIndex:
performKeyEquivalent:
removeItem:
removeItemAtIndex:
setAutoenablesItems:
setContextMenuRepresentation:
setDelegate:
setMenuChangedMessagesEnabled:
setMenuRepresentation:
setShowsStateColumn:
setSubmenu:forItem:
setSupermenu:
setTearOffMenuRepresentation:
setTitle:
showsStateColumn
sizeToFit
submenuAction:
supermenu
tearOffMenuRepresentation
title
update
Delegate Methods
menu:updateItem:atIndex:shouldCancel:
menu:willHighlightItem:
menuDidClose:
menuHasKeyEquivalent:forEvent:target:action:
menuNeedsUpdate:
menuWillOpen:
numberOfItemsInMenu:
Notifications
NSMenuDidAddItemNotification
NSMenuDidChangeItemNotification
NSMenuDidBeginTrackingNotification
NSMenuDidEndTrackingNotification
NSMenuDidRemoveItemNotification
NSMenuDidSendActionNotification
NSMenuWillSendActionNotification
Revision History
Index
Companion Guide
Application Menu and Pop-up List Programming Topics for Cocoa