![]() |
API
0.9.6
|
#import <CPMenu.h>
Class Methods | |
(void) | + initialize |
(CPDictionary) | + menuBarAttributes |
(CPImage) | + menuBarIconImage |
(CPString) | + menuBarTitle |
(BOOL) | + menuBarVisible |
(void) | + popUpContextMenu:withEvent:forView: |
(void) | + popUpContextMenu:withEvent:forView:withFont: |
(void) | + setMenuBarAttributes: |
(void) | + setMenuBarIconImage: |
(void) | + setMenuBarTitle: |
(void) | + setMenuBarVisible: |
(Function) | + trackingCallbackWithCallback: |
![]() | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(Class) | + class |
(void) | + exposeBinding: |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
Additional Inherited Members | |
![]() | |
Class | isa |
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 |
Enables or disables the receiver’s menu items. If the target does not implement the menu item's action method the item is disabled. If the target responsds to selector validateMenuItem: or validateUserInterfaceItem: (in that order) the return value is used.