---
title: altersStateOfSelectedItem
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspopupbutton/altersstateofselecteditem
---

# altersStateOfSelectedItem

When the value of this property is YES, the selected menu item’s state is set to NSControlStateValueOn. When the value of this property is NO, the menu item’s state is not changed. When this property changes, the state of the currently selected item is updated appropriately. This property is ignored for pull-down buttons.

## Declaration

```swift
var altersStateOfSelectedItem: Bool { get set }
```
