Name
NSComboBoxCell — Mac OS X 10.0
Synopsis
This class is the subclass of NSCell
that provides
the look and feel of the NSComboBox
control.
|
@interface NSComboBoxCell : NSTextFieldCell
|
// Initializers
|
- (id)initWithCoder:(NSCoder *)coder; |
// Accessor Methods
|
- (void)setNumberOfVisibleItems:(int)visibleItems; |
- (int)numberOfVisibleItems;
|
- (void)setHasVerticalScroller:(BOOL)flag; |
- (BOOL)hasVerticalScroller;
|
- (void)setIntercellSpacing:(NSSize)aSize; |
- (NSSize)intercellSpacing;
|
- (void)setItemHeight:(float)itemHeight; |
- (float)itemHeight;
|
- (void)setDataSource:(id)aSource; |
- (id)dataSource;
|
- (void)setUsesDataSource:(BOOL)flag; |
- (BOOL)usesDataSource;
|
- (void)setCompletes:(BOOL)completes; |
- (BOOL)completes;
|
// Instance Methods
|
- (void)addItemsWithObjectValues:(NSArray *)objects; |
- (void)addItemWithObjectValue:(id)object; |
- (NSString *)completedString:(NSString *)string; |
- (void)deselectItemAtIndex:(int)index; |
- (void)encodeWithCoder:(NSCoder *)coder; |
- (int)indexOfItemWithObjectValue:(id)object; |
- (int)indexOfSelectedItem;
|
- (void)insertItemWithObjectValue:(id)object atIndex:(int)index; |
- (id)itemObjectValueAtIndex:(int)index; |
- (void)noteNumberOfItemsChanged;
|
- (int)numberOfItems;
|
- (id)objectValueOfSelectedItem;
|
- (NSArray *)objectValues;
|
- (void)reloadData;
|
- (void)removeAllItems;
|
- (void)removeItemAtIndex ... |
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.