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

# objectValueOfSelectedItem

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

## Declaration

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

## Discussion

Discussion For combo boxes that use their own internally maintained list of items, this property contains the object in that list that is selected. If no item is selected, the value in this property is nil. Nothing is selected in a newly initialized combo box. This method logs a warning if the usesDataSource property is true.

## See Also

### Manipulating the Selection

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