Public Member Functions | |
(void) | - addItem: [implementation] |
(CPMenuItem) | - addItemWithTitle:action:keyEquivalent: [implementation] |
(BOOL) | - autoenablesItems [implementation] |
(void) | - awakeFromCib [implementation] |
(void) | - cancelTracking [implementation] |
(id) | - delegate [implementation] |
(void) | - encodeWithCoder: [implementation] |
(CPFont) | - font [implementation] |
(CPMenuItem) | - highlightedItem [implementation] |
(int) | - indexOfItem: [implementation] |
(int) | - indexOfItemWithRepresentedObject: [implementation] |
(int) | - indexOfItemWithSubmenu: [implementation] |
(int) | - indexOfItemWithTag: [implementation] |
(int) | - indexOfItemWithTarget:andAction: [implementation] |
(int) | - indexOfItemWithTitle: [implementation] |
(id) | - init [implementation] |
(id) | - initWithCoder: [implementation] |
(id) | - initWithTitle: [implementation] |
(void) | - insertItem:atIndex: [implementation] |
(CPMenuItem) | - insertItemWithTitle:action:keyEquivalent:atIndex: [implementation] |
(BOOL) | - isTornOff [implementation] |
(CPArray) | - itemArray [implementation] |
(CPMenuItem) | - itemAtIndex: [implementation] |
(void) | - itemChanged: [implementation] |
(CPMenuItem) | - itemWithTag: [implementation] |
(CPMenuItem) | - itemWithTitle: [implementation] |
(float) | - menuBarHeight [implementation] |
(float) | - minimumWidth [implementation] |
(unsigned) | - numberOfItems [implementation] |
(void) | - performActionForItemAtIndex: [implementation] |
(BOOL) | - performKeyEquivalent: [implementation] |
(void) | - popUpMenuPositioningItem:atLocation:inView:callback: [implementation] |
(void) | - removeItem: [implementation] |
(void) | - removeItemAtIndex: [implementation] |
(void) | - setAutoenablesItems: [implementation] |
(void) | - setDelegate: [implementation] |
(void) | - setFont: [implementation] |
(void) | - setMinimumWidth: [implementation] |
(void) | - setShowsStateColumn: [implementation] |
(void) | - setSubmenu:forItem: [implementation] |
(void) | - setSupermenu: [implementation] |
(void) | - setTitle: [implementation] |
(BOOL) | - showsStateColumn [implementation] |
(void) | - submenuAction: [implementation] |
(CPMenu) | - supermenu [implementation] |
(CPString) | - title [implementation] |
(void) | - update [implementation] |
Static Public Member Functions | |
(void) | + initialize [implementation] |
(CPDictionary) | + menuBarAttributes [implementation] |
(CPImage) | + menuBarIconImage [implementation] |
(CPString) | + menuBarTitle [implementation] |
(BOOL) | + menuBarVisible [implementation] |
(void) | + popUpContextMenu:withEvent:forView: [implementation] |
(void) | + popUpContextMenu:withEvent:forView:withFont: [implementation] |
(void) | + setMenuBarAttributes: [implementation] |
(void) | + setMenuBarIconImage: [implementation] |
(void) | + setMenuBarTitle: [implementation] |
(void) | + setMenuBarVisible: [implementation] |
(Function) | + trackingCallbackWithCallback: [implementation] |
Menus provide the user with a list of actions and/or submenus. Submenus themselves are full fledged menus and so a heirarchical structure appears.
Definition at line 60 of file CPMenu.j.
- (void) addItem: | (CPMenuItem) | aMenuItem | [implementation] |
- (CPMenuItem) addItemWithTitle: | (CPString) | aTitle | ||
action: | (SEL) | anAction | ||
keyEquivalent: | (CPString) | aKeyEquivalent | ||
[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 |
- (BOOL) autoenablesItems | [implementation] |
- (void) encodeWithCoder: | (CPCoder) | aCoder | [implementation] |
- (CPMenuItem) highlightedItem | [implementation] |
- (int) indexOfItem: | (CPMenuItem) | aMenuItem | [implementation] |
- (int) indexOfItemWithRepresentedObject: | (id) | anObject | [implementation] |
- (int) indexOfItemWithSubmenu: | (CPMenu) | aMenu | [implementation] |
- (int) indexOfItemWithTag: | (int) | aTag | [implementation] |
- (int) indexOfItemWithTarget: | (id) | aTarget | ||
andAction: | (SEL) | anAction | ||
[implementation] |
- (int) indexOfItemWithTitle: | (CPString) | aTitle | [implementation] |
- (id) initWithCoder: | (CPCoder) | aCoder | [implementation] |
- (id) initWithTitle: | (CPString) | aTitle | [implementation] |
- (void) insertItem: | (CPMenuItem) | aMenuItem | ||
atIndex: | (unsigned) | anIndex | ||
[implementation] |
- (CPMenuItem) insertItemWithTitle: | (CPString) | aTitle | ||
action: | (SEL) | anAction | ||
keyEquivalent: | (CPString) | aKeyEquivalent | ||
atIndex: | (unsigned) | anIndex | ||
[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 |
- (BOOL) isTornOff | [implementation] |
- (CPArray) itemArray | [implementation] |
- (CPMenuItem) itemAtIndex: | (int) | anIndex | [implementation] |
- (void) itemChanged: | (CPMenuItem) | aMenuItem | [implementation] |
- (CPMenuItem) itemWithTag: | (int) | aTag | [implementation] |
- (CPMenuItem) itemWithTitle: | (CPString) | aTitle | [implementation] |
+ (CPDictionary) menuBarAttributes | [implementation] |
- (unsigned) numberOfItems | [implementation] |
- (void) performActionForItemAtIndex: | (unsigned) | anIndex | [implementation] |
- (BOOL) performKeyEquivalent: | (CPEvent) | anEvent | [implementation] |
- (void) popUpMenuPositioningItem: | (CPMenuItem) | anItem | ||
atLocation: | (CGPoint) | aLocation | ||
inView: | (CPView) | aView | ||
callback: | (Function) | aCallback | ||
[implementation] |
- (void) removeItem: | (CPMenuItem) | aMenuItem | [implementation] |
- (void) removeItemAtIndex: | (unsigned) | anIndex | [implementation] |
- (void) setAutoenablesItems: | (BOOL) | aFlag | [implementation] |
+ (void) setMenuBarAttributes: | (CPDictionary) | attributes | [implementation] |
+ (void) setMenuBarIconImage: | (CPImage) | anImage | [implementation] |
+ (void) setMenuBarTitle: | (CPString) | aTitle | [implementation] |
+ (void) setMenuBarVisible: | (BOOL) | menuBarShouldBeVisible | [implementation] |
- (void) setMinimumWidth: | (float) | aMinimumWidth | [implementation] |
- (void) setShowsStateColumn: | (BOOL) | shouldShowStateColumn | [implementation] |
- (void) setSubmenu: | (CPMenu) | aMenu | ||
forItem: | (CPMenuItem) | aMenuItem | ||
[implementation] |
- (void) setSupermenu: | (CPMenu) | aMenu | [implementation] |
- (void) setTitle: | (CPString) | aTitle | [implementation] |
- (BOOL) showsStateColumn | [implementation] |
- (void) submenuAction: | (id) | aSender | [implementation] |
- (CPMenu) supermenu | [implementation] |
+ (Function) trackingCallbackWithCallback: | (Function) | aCallback | [implementation] |