---
title: titleOfSelectedItem
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspopupbutton/titleofselecteditem
---

# titleOfSelectedItem

The title of the item that was last selected by the user.

## Declaration

```swift
var titleOfSelectedItem: String? { get }
```

## Discussion

Discussion If no item is selected, the value in this property is nil.

## See Also

### Getting the user’s selection

- [selectedItem](appkit/nspopupbutton/selecteditem.md)
- [indexOfSelectedItem](appkit/nspopupbutton/indexofselecteditem.md)
