---
title: autoenablesItems
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspopupbutton/autoenablesitems
---

# autoenablesItems

A Boolean value indicating whether the button enables and disables its items every time a user event occurs.

## Declaration

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

## Discussion

Discussion When the value of this property is true, user events cause the button to enable and disable its items automatically according to the NSMenuValidation protocol specification.

## See Also

### Setting the type of menu

- [pullsDown](appkit/nspopupbutton/pullsdown.md)
