#import <CPPopUpButton.h>
Class Methods | |
(CPString) | + defaultThemeClass |
(BOOL) | + isBindingExclusive: |
(CPSet) | + keyPathsForValuesAffectingSelectedIndex |
(CPSet) | + keyPathsForValuesAffectingSelectedItem |
(CPSet) | + keyPathsForValuesAffectingSelectedTag |
Class Methods inherited from CPButton | |
(id) | + buttonWithTitle: |
(id) | + buttonWithTitle:theme: |
(CPDictionary) | + themeAttributes |
Class Methods inherited from CPControl | |
(void) | + initialize |
Class Methods inherited from CPView | |
(Class) | + animatorClass |
(CAAnimation) | + defaultAnimationForKey: |
(CPMenu) | + defaultMenu |
(BOOL) | + isHighDPIDrawingEnabled |
(CPSet) | + keyPathsForValuesAffectingBounds |
(CPSet) | + keyPathsForValuesAffectingFrame |
(void) | + setHighDPIDrawingEnabled: |
A CPPopUpButton contains a pop-up menu of items that a user can select from.
Definition at line 2 of file CPPopUpButton.h.
|
implementation |
Adds a new menu item using a CPMenuItem object.
Definition at line 138 of file CPPopUpButton.j.
|
implementation |
Adds multiple new menu items with the titles specified in the provided array.
titles | an array of names for the new items |
Definition at line 156 of file CPPopUpButton.j.
|
implementation |
Adds a new menu item with the specified title.
the | new menu item's title |
Definition at line 147 of file CPPopUpButton.j.
|
implementation |
Reimplemented from CPButton.
Definition at line 37 of file CPPopUpButton.j.
|
implementation |
Returns the index of the specified item or CPNotFound if the item is not in the list.
aMenuItem | the item to obtain the index for |
Definition at line 392 of file CPPopUpButton.j.
|
implementation |
Returns the index of the item with the specified represented object or CPNotFound if a match does not exist.
anObject | the item's represented object |
Definition at line 421 of file CPPopUpButton.j.
|
implementation |
Returns the index of the item with the specified tag or CPNotFound if the item is not in the list.
aTag | the item's tag |
Definition at line 401 of file CPPopUpButton.j.
|
implementation |
Returns the index of the item with the specified target and action. Returns CPNotFound if the no such item is in the list.
aTarget | the item's target |
anAction | the item's action |
Definition at line 433 of file CPPopUpButton.j.
|
implementation |
Returns the index of the item with the specified title or CPNotFound.
aTitle | the item's title |
Definition at line 410 of file CPPopUpButton.j.
|
implementation |
Returns the index of the selected item. If no item is selected, it returns CPNotFound.
Definition at line 236 of file CPPopUpButton.j.
|
implementation |
Initializes the pop-up button with data from the specified coder.
aCoder | the coder from which to read the data |
Reimplemented from CPButton.
Provided by category CPPopUpButton(CPCoding).
Definition at line 1069 of file CPPopUpButton.j.
|
implementation |
Initializes and returns a newly allocated CPButton object with a specified frame rectangle.
aFrame | The frame rectangle for the created button object. |
Reimplemented from CPButton.
Definition at line 90 of file CPPopUpButton.j.
|
implementation |
Initializes the pop-up button to the specified size.
aFrame | the size for the button |
shouldPullDown | YES makes this a pull-down menu, NO makes it a pop-up menu. |
Definition at line 63 of file CPPopUpButton.j.
|
implementation |
Inserts a new item with the specified title and index location.
aTitle | the new item's title |
anIndex | the item's index in the menu |
Definition at line 170 of file CPPopUpButton.j.
|
implementation |
Provided by category CPPopUpButton(BindingSupport).
Definition at line 793 of file CPPopUpButton.j.
|
implementation |
Returns an array of the items in the menu
Definition at line 330 of file CPPopUpButton.j.
|
implementation |
Returns the item at the specified index or nil
if the item does not exist.
anIndex | the index of the item to obtain |
Definition at line 339 of file CPPopUpButton.j.
|
implementation |
Returns the title of the item at the specified index or nil
if no item exists.
anIndex | the index of the item |
Definition at line 348 of file CPPopUpButton.j.
|
implementation |
Returns an array of all the menu item titles.
Definition at line 356 of file CPPopUpButton.j.
|
implementation |
Returns the menu item with the specified title.
aTitle | the title of the desired menu item |
Definition at line 368 of file CPPopUpButton.j.
|
implementation |
Definition at line 42 of file CPPopUpButton.j.
|
implementation |
Definition at line 52 of file CPPopUpButton.j.
|
implementation |
Definition at line 47 of file CPPopUpButton.j.
|
implementation |
Returns the last menu item
Definition at line 382 of file CPPopUpButton.j.
|
implementation |
Reimplemented from CPButton.
Definition at line 660 of file CPPopUpButton.j.
|
implementation |
Returns a count of the number of items in the button's menu.
Definition at line 322 of file CPPopUpButton.j.
|
implementation |
Returns the receiver's object value.
Reimplemented from CPControl.
Definition at line 294 of file CPPopUpButton.j.
|
implementation |
Definition at line 539 of file CPPopUpButton.j.
|
implementation |
Returns the button's edge where the pop-up menu will be displayed when there is not enough room to display directly above the button.
Definition at line 444 of file CPPopUpButton.j.
|
implementation |
Returns YES
if the button is a pull-down menu. NO
if the button is a pop-up menu.
Definition at line 128 of file CPPopUpButton.j.
|
implementation |
Removes all menu items from the pop-up button's menu
Definition at line 185 of file CPPopUpButton.j.
|
implementation |
Removes the menu item at the specified index
anIndex | the index of the item to remove |
Definition at line 205 of file CPPopUpButton.j.
|
implementation |
Removes a menu item with the specified title from the button.
aTitle | the title of the item to remove |
Definition at line 195 of file CPPopUpButton.j.
|
implementation |
Reimplemented from CPView.
Definition at line 732 of file CPPopUpButton.j.
|
implementation |
Definition at line 265 of file CPPopUpButton.j.
|
implementation |
Returns the selected item or nil
if no item is selected.
Definition at line 215 of file CPPopUpButton.j.
|
implementation |
Selects the specified menu item.
aMenuItem | the item to select |
Definition at line 246 of file CPPopUpButton.j.
|
implementation |
Selects the item at the specified index
anIndex | the index of the item to select |
Definition at line 255 of file CPPopUpButton.j.
|
implementation |
Selects the menu item with the specified tag
the | tag of the item to select |
Definition at line 303 of file CPPopUpButton.j.
|
implementation |
Selects the item with the specified title
the | title of the item to select |
Definition at line 312 of file CPPopUpButton.j.
|
implementation |
This method has no effect. Because the image is taken from the currently selected item, this method serves no purpose.
Reimplemented from CPButton.
Definition at line 511 of file CPPopUpButton.j.
|
implementation |
Selects the item at the specified index
anIndex | the index of the item to select |
Reimplemented from CPButton.
Definition at line 274 of file CPPopUpButton.j.
|
implementation |
Sets the preferred edge of the button to display the pop-up when there is a limited amount of screen space. By default, the pop-up should draw on top of the button.
Definition at line 454 of file CPPopUpButton.j.
|
implementation |
Specifies whether the object is a pull-down or a pop-up menu. If the button pulls down the menu items represent actions, not states. So the text in the button will NOT change when the user selects something different.
shouldPullDown | YES makes the pop-up button a pull-down menu. NO makes it a pop-up menu. |
Definition at line 105 of file CPPopUpButton.j.
|
implementation |
Definition at line 260 of file CPPopUpButton.j.
|
implementation |
Sets the pop-up button's title.
aTitle | the new title |
Reimplemented from CPButton.
Definition at line 464 of file CPPopUpButton.j.
|
implementation |
Makes sure the selected item and the item being displayed are one and the same.
Definition at line 521 of file CPPopUpButton.j.
|
implementation |
Definition at line 758 of file CPPopUpButton.j.
|
implementation |
Returns the title of the selected item or nil
if no item is selected.
Definition at line 228 of file CPPopUpButton.j.