O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

image with no caption

@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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required