#import <CPMenuItem.h>
Class Methods | |
(CPMenuItem) | + separatorItem |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesImplementSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isBindingExclusive: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + object:performSelector:withObject:afterDelay:inModes: |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
A CPMenuItem is added to a CPMenu. It has an action and a target for that action to be sent to whenever the item is 'activated'.
Definition at line 2 of file CPMenuItem.h.
|
implementation |
Returns the item's action.
Definition at line 246 of file CPMenuItem.j.
|
implementation |
Returns the menu item's alternate image
Definition at line 408 of file CPMenuItem.j.
|
implementation |
Returns a copy of the item. The copy does not belong If the item has a submenu, it is NOT copied.
Reimplemented from CPObject.
Definition at line 825 of file CPMenuItem.j.
|
implementation |
Returns a human readable string describing the receiver
Reimplemented from CPObject.
Definition at line 884 of file CPMenuItem.j.
|
implementation |
Writes the menu item out to a coder.
aCoder | the coder to write the menu item out to |
Provided by category CPMenuItem(CPCoding).
Definition at line 979 of file CPMenuItem.j.
|
implementation |
Returns the menu item's font
Definition at line 305 of file CPMenuItem.j.
|
implementation |
Returns YES
if the menu item has a submenu.
Definition at line 526 of file CPMenuItem.j.
|
implementation |
Returns the menu item's image
Definition at line 391 of file CPMenuItem.j.
|
implementation |
Returns the menu item's indentation level. This is a value between 0 and 15 (inclusive).
Definition at line 742 of file CPMenuItem.j.
|
implementation |
Initializes the receiver
Reimplemented from CPObject.
Definition at line 109 of file CPMenuItem.j.
|
implementation |
Initializes the menu item from a coder.
aCoder | the coder from which to initialize |
Provided by category CPMenuItem(CPCoding).
Definition at line 926 of file CPMenuItem.j.
|
implementation |
Initializes the menu item with a title, action, and keyboard equivalent.
aTitle | the menu item's title |
anAction | the action that gets triggered when the item is selected |
aKeyEquivalent | the keyboard shortcut for the item |
Definition at line 121 of file CPMenuItem.j.
|
implementation |
Returns YES
if the menu item is an alternate for the previous item.
Definition at line 719 of file CPMenuItem.j.
|
implementation |
Returns YES
if the item is enabled.
Definition at line 172 of file CPMenuItem.j.
|
implementation |
Returns YES
if the item is hidden.
Definition at line 195 of file CPMenuItem.j.
|
implementation |
Returns YES
if the item is hidden or if one of it's supermenus is hidden.
Definition at line 203 of file CPMenuItem.j.
|
implementation |
Returns YES
if the menu item is highlighted.
Definition at line 815 of file CPMenuItem.j.
|
implementation |
Returns YES
if the menu item is a separator.
Definition at line 548 of file CPMenuItem.j.
|
implementation |
Returns the keyboard shortcut for this menu item
Definition at line 585 of file CPMenuItem.j.
|
implementation |
Returns the item's keyboard shortcut modifier mask. Can be a combination of:
CPShiftKeyMask CPAlternateKeyMask CPCommandKeyMask CPControlKeyMask
Definition at line 615 of file CPMenuItem.j.
|
implementation |
Definition at line 620 of file CPMenuItem.j.
|
implementation |
Returns the container menu of this item
Definition at line 566 of file CPMenuItem.j.
|
implementation |
Returns the image shown when the menu item is in the 'mixed' state.
Definition at line 473 of file CPMenuItem.j.
|
implementation |
Returns the menu items mnemonic character
Definition at line 700 of file CPMenuItem.j.
|
implementation |
Returns the index of the mnemonic character in the title.
Definition at line 675 of file CPMenuItem.j.
|
implementation |
Creates a deep mutable copy of the receiver.
Reimplemented from CPObject.
Definition at line 856 of file CPMenuItem.j.
|
implementation |
Returns the image shown when the menu item is in the 'off' state.
Definition at line 451 of file CPMenuItem.j.
|
implementation |
Returns the image shown when the menu item is in the 'on' state.
Definition at line 430 of file CPMenuItem.j.
|
implementation |
Returns the item's represented object.
Definition at line 779 of file CPMenuItem.j.
|
implementation |
Returns a new menu item separator.
Definition at line 536 of file CPMenuItem.j.
|
implementation |
Sets the action that gets sent to the item's target when triggered.
anAction | the action to send |
Definition at line 238 of file CPMenuItem.j.
|
implementation |
Sets whether this item is an alternate for the previous menu item.
isAlternate | YES denotes that this menu item is an alternate |
Definition at line 711 of file CPMenuItem.j.
|
implementation |
Sets the menu item's alternate image
anImage | the menu item's alternate image |
Definition at line 400 of file CPMenuItem.j.
|
implementation |
Sets whether the menu item is enabled or not
isEnabled | YES enables the item. NO disables it. |
Definition at line 155 of file CPMenuItem.j.
|
implementation |
Sets the font for the text of this menu item
aFont | the font for the menu item |
Definition at line 290 of file CPMenuItem.j.
|
implementation |
Sets whether the item should be hidden. A hidden item can not be triggered by keyboard shortcuts.
isHidden | YES hides the item. NO reveals it. |
Definition at line 182 of file CPMenuItem.j.
|
implementation |
Sets the menu item's image
anImage | the menu item's image |
Definition at line 376 of file CPMenuItem.j.
|
implementation |
Sets the indentation level of the menu item. Must be a value between 0 and 15 (inclusive).
aLevel | the item's new indentation level |
CPInvalidArgumentException | if aLevel is less than 0 |
Definition at line 731 of file CPMenuItem.j.
|
implementation |
Sets the keyboard shortcut for this menu item
aString | the keyboard shortcut |
Definition at line 577 of file CPMenuItem.j.
|
implementation |
Sets the modifier mask used for the item's keyboard shortcut. Can be a combination of:
CPShiftKeyMask CPAlternateKeyMask CPCommandKeyMask CPControlKeyMask
Definition at line 600 of file CPMenuItem.j.
|
implementation |
Set the container menu of this item.
aMenu | the item's container menu |
Definition at line 558 of file CPMenuItem.j.
|
implementation |
Sets the image that is shown when the menu item is in the 'mixed' state.
anImage | the image to show |
Definition at line 460 of file CPMenuItem.j.
|
implementation |
Sets the index of the mnemonic character in the title. The character will be underlined and is used as a shortcut for navigation.
aLocation | the index of the character in the title |
Definition at line 667 of file CPMenuItem.j.
|
implementation |
Sets the image that is shown when the menu item is in the 'off' state.
anImage | the image to show |
Definition at line 439 of file CPMenuItem.j.
|
implementation |
Sets the image that is shown when the menu item is in the 'on' state.
anImage | the image to show |
Definition at line 418 of file CPMenuItem.j.
|
implementation |
Sets the menu item's represented object. This is a kind of tag for the developer. Not a UI feature.
anObject | the represented object |
Definition at line 771 of file CPMenuItem.j.
|
implementation |
Sets the state of the menu item. Possible states are:
CPMixedState CPOnState CPOffState
Definition at line 346 of file CPMenuItem.j.
|
implementation |
Sets the submenu for this item
aMenu | the submenu |
Definition at line 483 of file CPMenuItem.j.
|
implementation |
Sets the menu item's tag
aTag | the tag for the item |
Definition at line 325 of file CPMenuItem.j.
|
implementation |
Sets the menu item's action target.
aTarget | the target for the action |
Definition at line 221 of file CPMenuItem.j.
|
implementation |
Set's the item's text color
Definition at line 281 of file CPMenuItem.j.
|
implementation |
Sets the item's title.
aTitle | the item's new title |
Definition at line 256 of file CPMenuItem.j.
|
implementation |
Sets the title of the menu item and the mnemonic character. The mnemonic character should be preceded by an '&'.
aTitle | the title string with a denoted mnemonic |
Definition at line 684 of file CPMenuItem.j.
|
implementation |
Sets the tooltip for the menu item.
aToolTip | the tool tip for the item |
Definition at line 752 of file CPMenuItem.j.
|
implementation |
Sets the view for the menu item
aView | the menu's item's view |
Definition at line 790 of file CPMenuItem.j.
|
implementation |
Returns the menu item's current state. Possible states are:
CPMixedState CPOnState CPOffState
Definition at line 366 of file CPMenuItem.j.
|
implementation |
Returns the submenu of the item. nil
if there is no submenu.
Definition at line 518 of file CPMenuItem.j.
|
implementation |
Returns the item's tag
Definition at line 333 of file CPMenuItem.j.
|
implementation |
Returns the item's action target
Definition at line 229 of file CPMenuItem.j.
|
implementation |
Returns the menu item's title.
Definition at line 273 of file CPMenuItem.j.
|
implementation |
Returns the item's tooltip
Definition at line 760 of file CPMenuItem.j.
|
implementation |
Returns the menu item's view
Definition at line 805 of file CPMenuItem.j.