---
title: objectValueOfSelectedItem
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscomboboxcell/objectvalueofselecteditem
---

# objectValueOfSelectedItem

The object corresponding to the last item selected from the pop-up list.

## Declaration

```swift
var objectValueOfSelectedItem: Any? { get }
```

## Discussion

Discussion The value of this property is the object from the combo box’s internal item list corresponding to the last item selected from the pop-up list, or nil if no item is selected. Note that nothing is initially selected in a newly initialized combo box cell. Accessing this property logs a warning if usesDataSource is true.

## See Also

### Manipulating the Selection

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