![]() |
API
0.9.6
|
#import <CPPopUpButton.h>
Class Methods | |
(CPString) | + defaultThemeClass |
(CPSet) | + keyPathsForValuesAffectingSelectedIndex |
(CPSet) | + keyPathsForValuesAffectingSelectedItem |
(CPSet) | + keyPathsForValuesAffectingSelectedTag |
![]() | |
(id) | + buttonWithTitle: |
(id) | + buttonWithTitle:theme: |
(id) | + themeAttributes |
![]() | |
(void) | + initialize |
![]() | |
(CPMenu) | + defaultMenu |
(CPSet) | + keyPathsForValuesAffectingBounds |
(CPSet) | + keyPathsForValuesAffectingFrame |
![]() | |
(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 |
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 142 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 160 of file CPPopUpButton.j.
|
implementation |
Adds a new menu item with the specified title.
the | new menu item's title |
Definition at line 151 of file CPPopUpButton.j.
|
implementation |
Reimplemented from CPButton.
Definition at line 41 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 401 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 430 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 410 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 442 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 419 of file CPPopUpButton.j.
|
implementation |
Returns the index of the selected item. If no item is selected, it returns CPNotFound.
Definition at line 240 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 1060 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 94 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 67 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 174 of file CPPopUpButton.j.
|
implementation |
Returns an array of the items in the menu
Definition at line 334 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 343 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 352 of file CPPopUpButton.j.
|
implementation |
Returns an array of all the menu item titles.
Definition at line 360 of file CPPopUpButton.j.
|
implementation |
Returns the menu item with the specified title.
aTitle | the title of the desired menu item |
Definition at line 377 of file CPPopUpButton.j.
|
implementation |
Definition at line 46 of file CPPopUpButton.j.
|
implementation |
Definition at line 56 of file CPPopUpButton.j.
|
implementation |
Definition at line 51 of file CPPopUpButton.j.
|
implementation |
Returns the last menu item
Definition at line 391 of file CPPopUpButton.j.
|
implementation |
Notifies the receiver that the user has clicked the mouse down in its area.
anEvent | contains information about the click |
Reimplemented from CPButton.
Definition at line 661 of file CPPopUpButton.j.
|
implementation |
Returns a count of the number of items in the button's menu.
Definition at line 326 of file CPPopUpButton.j.
|
implementation |
Returns the receiver's object value.
Reimplemented from CPControl.
Definition at line 298 of file CPPopUpButton.j.
|
implementation |
Definition at line 540 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 453 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 132 of file CPPopUpButton.j.
|
implementation |
Removes all menu items from the pop-up button's menu
Definition at line 189 of file CPPopUpButton.j.
|
implementation |
Removes the menu item at the specified index
anIndex | the index of the item to remove |
Definition at line 209 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 199 of file CPPopUpButton.j.
|
implementation |
Notifies the receiver that the user has clicked the right mouse down in its area.
anEvent | contains information about the right click |
Reimplemented from CPView.
Definition at line 728 of file CPPopUpButton.j.
|
implementation |
Definition at line 269 of file CPPopUpButton.j.
|
implementation |
Returns the selected item or nil
if no item is selected.
Definition at line 219 of file CPPopUpButton.j.
|
implementation |
Selects the specified menu item.
aMenuItem | the item to select |
Definition at line 250 of file CPPopUpButton.j.
|
implementation |
Selects the item at the specified index
anIndex | the index of the item to select |
Definition at line 259 of file CPPopUpButton.j.
|
implementation |
Selects the menu item with the specified tag
the | tag of the item to select |
Definition at line 307 of file CPPopUpButton.j.
|
implementation |
Selects the item with the specified title
the | title of the item to select |
Definition at line 316 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 512 of file CPPopUpButton.j.
|
implementation |
Selects the item at the specified index
anIndex | the index of the item to select |
Definition at line 278 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 463 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 109 of file CPPopUpButton.j.
|
implementation |
Definition at line 264 of file CPPopUpButton.j.
|
implementation |
Sets the pop-up button's title.
aTitle | the new title |
Reimplemented from CPButton.
Definition at line 473 of file CPPopUpButton.j.
|
implementation |
Makes sure the selected item and the item being displayed are one and the same.
Definition at line 522 of file CPPopUpButton.j.
Definition at line 754 of file CPPopUpButton.j.
|
implementation |
Returns the title of the selected item or nil
if no item is selected.
Definition at line 232 of file CPPopUpButton.j.