---
title: NSComboBoxCell
framework: appkit
role: symbol
role_heading: Class
path: appkit/nscomboboxcell
---

# NSComboBoxCell

The user interface of a combo box.

## Declaration

```swift
class NSComboBoxCell
```

## Overview

Overview 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

- [hasVerticalScroller](appkit/nscomboboxcell/hasverticalscroller.md)
- [isButtonBordered](appkit/nscomboboxcell/isbuttonbordered.md)
- [intercellSpacing](appkit/nscomboboxcell/intercellspacing.md)
- [itemHeight](appkit/nscomboboxcell/itemheight.md)
- [numberOfVisibleItems](appkit/nscomboboxcell/numberofvisibleitems.md)

### Accessing a Data Source

- [dataSource](appkit/nscomboboxcell/datasource.md)
- [usesDataSource](appkit/nscomboboxcell/usesdatasource.md)

### Working with an Internal List

- [addItems(withObjectValues:)](appkit/nscomboboxcell/additems(withobjectvalues:).md)
- [addItem(withObjectValue:)](appkit/nscomboboxcell/additem(withobjectvalue:).md)
- [insertItem(withObjectValue:at:)](appkit/nscomboboxcell/insertitem(withobjectvalue:at:).md)
- [objectValues](appkit/nscomboboxcell/objectvalues.md)
- [removeAllItems()](appkit/nscomboboxcell/removeallitems().md)
- [removeItem(at:)](appkit/nscomboboxcell/removeitem(at:).md)
- [removeItem(withObjectValue:)](appkit/nscomboboxcell/removeitem(withobjectvalue:).md)
- [numberOfItems](appkit/nscomboboxcell/numberofitems.md)

### Manipulating the Displayed List

- [indexOfItem(withObjectValue:)](appkit/nscomboboxcell/indexofitem(withobjectvalue:).md)
- [itemObjectValue(at:)](appkit/nscomboboxcell/itemobjectvalue(at:).md)
- [noteNumberOfItemsChanged()](appkit/nscomboboxcell/notenumberofitemschanged().md)
- [reloadData()](appkit/nscomboboxcell/reloaddata().md)
- [scrollItemAtIndexToTop(_:)](appkit/nscomboboxcell/scrollitematindextotop(_:).md)
- [scrollItemAtIndexToVisible(_:)](appkit/nscomboboxcell/scrollitematindextovisible(_:).md)

### Manipulating the Selection

- [deselectItem(at:)](appkit/nscomboboxcell/deselectitem(at:).md)
- [indexOfSelectedItem](appkit/nscomboboxcell/indexofselecteditem.md)
- [objectValueOfSelectedItem](appkit/nscomboboxcell/objectvalueofselecteditem.md)
- [selectItem(at:)](appkit/nscomboboxcell/selectitem(at:).md)
- [selectItem(withObjectValue:)](appkit/nscomboboxcell/selectitem(withobjectvalue:).md)

### Completing the Text Field

- [completedString(_:)](appkit/nscomboboxcell/completedstring(_:).md)
- [completes](appkit/nscomboboxcell/completes.md)

## Relationships

### Inherits From

- [NSTextFieldCell](appkit/nstextfieldcell.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSAccessibilityElementProtocol](appkit/nsaccessibilityelementprotocol.md)
- [NSAccessibilityProtocol](appkit/nsaccessibilityprotocol.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSUserInterfaceItemIdentification](appkit/nsuserinterfaceitemidentification.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Cells

- [NSComboBoxCellDataSource](appkit/nscomboboxcelldatasource.md)
