#import <CPMenu.h>
Menus provide the user with a list of actions and/or submenus. Submenus themselves are full fledged menus and so a hierarchical structure appears.
|
implementation |
|
implementation |
Creates and adds a menu item with the specified attributes at the end of the menu.
aTitle | the title of the new menu item |
anAction | the action initiated when the user selects the item |
aKeyEquivalent | the keyboard shortcut for the menu item |
|
implementation |
|
implementation |
|
implementation |
Provided by category CPMenu(CPKeyValueCoding).
|
implementation |
Encodes the data of the menu into a coder
aCoder | the coder to which the data will be written |
Provided by category CPMenu(CPCoding).
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
Initializes the menu with data from the specified coder.
aCoder | the coder from which to read the data |
Provided by category CPMenu(CPCoding).
|
implementation |
|
implementation |
|
implementation |
Creates and inserts a new menu item with the specified attributes.
aTitle | the title of the menu item |
anAction | the action initiated when the user selects the item |
aKeyEquivalent | the keyboard shortcut for the item |
anIndex | the index location in the menu for the new item |
|
implementation |
Provided by category CPMenu(CPKeyValueObserving).
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
Provided by category CPMenu(CPKeyValueCoding).
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
Provided by category CPMenu(CPKeyValueCoding).
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
Provided by category CPMenu(CPKeyValueObserving).
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
|
implementation |
Enables or disables the receiver’s menu items. If the item has no target, an action binding is checked. If the target does not implement the menu item's action method or the binding's selector, the item is disabled. If the target responds to selector validateMenuItem: or validateUserInterfaceItem: (in that order) the return value is used.