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

# titleOfSelectedItem

The title of the item last selected by the user.

## Declaration

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

## Discussion

Discussion The value of this property is the title of the selected menu item, or an empty string if no item is selected.

## See Also

### Related Documentation

- [selectItem(withTitle:)](appkit/nspopupbuttoncell/selectitem(withtitle:).md)

### Title conveniences

- [itemTitle(at:)](appkit/nspopupbuttoncell/itemtitle(at:).md)
- [itemTitles](appkit/nspopupbuttoncell/itemtitles.md)
