[Previous] [Up] [Next]

NSPopUpButtonCell

Authors

Richard Frith-Macdonald

Version: $Revision$

Date: $Date$

NSPopUpButtonCell

NSPopUpButtonCell

Declared in: Gui/NSPopUpButtonCell.h

Inherits from: NSMenuItemCell

Conforms to: NSCoding


Instance Variables

Methods


Instances Methods

addItemWithTitle:

- (void) addItemWithTitle: (NSString*)title;

addItemsWithTitles:

- (void) addItemsWithTitles: (NSArray*)itemTitles;

altersStateOfSelectedItem

- (BOOL) altersStateOfSelectedItem;

arrowPosition

- (NSPopUpArrowPosition) arrowPosition;

attachPopUpWithFrame:

- (void) attachPopUpWithFrame: (NSRect)cellFrame;

autoenablesItems

- (BOOL) autoenablesItems;

dismissPopUp

- (void) dismissPopUp;

indexOfItem:

- (int) indexOfItem: (id<NSMenuItem>)item;

indexOfItemWithRepresentedObject:

- (int) indexOfItemWithRepresentedObject: (id)obj;

indexOfItemWithTag:

- (int) indexOfItemWithTag: (int)tag;

indexOfItemWithTarget:andAction:

- (int) indexOfItemWithTarget: (id)target andAction: (SEL)actionSelector;

indexOfItemWithTitle:

- (int) indexOfItemWithTitle: (NSString*)title;

indexOfSelectedItem

- (int) indexOfSelectedItem;

initTextCell:

- (id) initTextCell: (NSString*)stringValue;

insertItemWithTitle:atIndex:

- (void) insertItemWithTitle: (NSString*)title atIndex: (int)index;

itemArray

- (NSArray*) itemArray;

itemAtIndex:

- (id<NSMenuItem>) itemAtIndex: (int)index;

itemTitleAtIndex:

- (NSString*) itemTitleAtIndex: (int)index;

itemTitles

- (NSArray*) itemTitles;

itemWithTitle:

- (id<NSMenuItem>) itemWithTitle: (NSString*)title;

lastItem

- (id<NSMenuItem>) lastItem;

menu

- (NSMenu*) menu;

numberOfItems

- (int) numberOfItems;

performClick:

- (void) performClick: (id)sender;

performClickWithFrame:inView:

- (void) performClickWithFrame: (NSRect)frame inView: (NSView*)controlView;

preferredEdge

- (NSRectEdge) preferredEdge;

pullsDown

- (BOOL) pullsDown;

removeAllItems

- (void) removeAllItems;

removeItemAtIndex:

- (void) removeItemAtIndex: (int)index;

removeItemWithTitle:

- (void) removeItemWithTitle: (NSString*)title;

selectedItem

- (id<NSMenuItem>) selectedItem;

selectItem:

- (void) selectItem: (id<NSMenuItem>)item;

selectItemAtIndex:

- (void) selectItemAtIndex: (int)index;

selectItemWithTitle:

- (void) selectItemWithTitle: (NSString*)title;

setAltersStateOfSelectedItem:

- (void) setAltersStateOfSelectedItem: (BOOL)flag;

setArrowPosition:

- (void) setArrowPosition: (NSPopUpArrowPosition)position;

setAutoenablesItems:

- (void) setAutoenablesItems: (BOOL)flag;

setMenu:

- (void) setMenu: (NSMenu*)menu;

setPreferredEdge:

- (void) setPreferredEdge: (NSRectEdge)edge;

setPullsDown:

- (void) setPullsDown: (BOOL)flag;

setTitle:

- (void) setTitle: (NSString*)aString;

setUsesItemFromMenu:

- (void) setUsesItemFromMenu: (BOOL)flag;

synchronizeTitleAndSelectedItem

- (void) synchronizeTitleAndSelectedItem;

titleOfSelectedItem

- (NSString*) titleOfSelectedItem;

usesItemFromMenu

- (BOOL) usesItemFromMenu;