NSMenuItem
A command item in an app menu.
Declaration
class NSMenuItemOverview
The NSMenuItem class includes some private functionality needed to maintain binary compatibility with other components of Cocoa. Because of this fact, you can’t replace the NSMenuItem class with a different class, but you can subclass it if necessary.
Topics
Creating a menu item
Enabling a menu item
Managing hidden status
Managing the target and action
Managing the title
Managing the tag
Managing the state
Managing the image
Managing the badge
Managing the section header
Managing submenus
Managing the separator item
Managing the owning menu
Managing key equivalents
Managing mnemonics
Managing user key equivalents
usesUserKeyEquivalentsuserKeyEquivalentallowsAutomaticKeyEquivalentLocalizationallowsAutomaticKeyEquivalentMirroringallowsKeyEquivalentWhenHidden