---
title: objectValues
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscombobox/objectvalues
---

# objectValues

An array of the items from the combo box’s internal list.

## Declaration

```swift
var objectValues: [Any] { get }
```

## Discussion

Discussion The array contains the objects you added or inserted into the combo box, so the type of each object can vary. Accessing this property logs a warning if the usesDataSource property is true.

## See Also

### Configuring the Combo Box Items

- [addItems(withObjectValues:)](appkit/nscombobox/additems(withobjectvalues:).md)
- [addItem(withObjectValue:)](appkit/nscombobox/additem(withobjectvalue:).md)
- [insertItem(withObjectValue:at:)](appkit/nscombobox/insertitem(withobjectvalue:at:).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)
