NSComboBoxCell
The user interface of a combo box.
Declaration
class NSComboBoxCellOverview
NSComboBoxCell is a subclass of NSTextFieldCell used to implement the user interface of “combo boxes” (see NSComboBox for information on how combo boxes look and work). The NSComboBox subclass of NSTextField uses a single NSComboBoxCell, and essentially all of the NSComboBox class’s methods simply invoke the corresponding NSComboBoxCell method.
Also see the NSComboBoxCellDataSource protocol, which declares the methods that an NSComboBoxCell object uses to access the contents of its data source object.
Topics
Setting Display Attributes
Accessing a Data Source
Working with an Internal List
addItems(withObjectValues:)addItem(withObjectValue:)insertItem(withObjectValue:at:)objectValuesremoveAllItems()removeItem(at:)removeItem(withObjectValue:)numberOfItems
Manipulating the Displayed List
indexOfItem(withObjectValue:)itemObjectValue(at:)noteNumberOfItemsChanged()reloadData()scrollItemAtIndexToTop(_:)scrollItemAtIndexToVisible(_:)
Manipulating the Selection
deselectItem(at:)indexOfSelectedItemobjectValueOfSelectedItemselectItem(at:)selectItem(withObjectValue:)