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

# autoenablesItems

A Boolean value that indicates if the button automatically 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, the button automatically enables and disables items. The default value is true. For more information about enabling and disabling menu items, see NSMenuValidation.

## See Also

### Accessing menu attributes

- [menu](appkit/nspopupbuttoncell/menu.md)
- [pullsDown](appkit/nspopupbuttoncell/pullsdown.md)
- [preferredEdge](appkit/nspopupbuttoncell/preferrededge.md)
- [usesItemFromMenu](appkit/nspopupbuttoncell/usesitemfrommenu.md)
- [altersStateOfSelectedItem](appkit/nspopupbuttoncell/altersstateofselecteditem.md)
- [arrowPosition](appkit/nspopupbuttoncell/arrowposition.md)
