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

# addItem(withObjectValue:)

Adds an object to the end of the receiver’s internal item list.

## Declaration

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

## Parameters

- `object`: The object to add to the internal item list.

## Discussion

Discussion This method logs a warning if the usesDataSource property is true.

## See Also

### Configuring the Combo Box Items

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