---
title: "addItem(withObjectValue:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nscomboboxcell/additem(withobjectvalue:)"
---

# addItem(withObjectValue:)

Adds the specified object to the internal item list.

## Declaration

```swift
func addItem(withObjectValue object: Any)
```

## Parameters

- `object`: The object to add to the end of the combo box’s internal item list.

## Discussion

Discussion This method logs a warning if usesDataSource is true.

## See Also

### Working with an Internal List

- [addItems(withObjectValues:)](appkit/nscomboboxcell/additems(withobjectvalues:).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)
