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

# autoenablesItems

Indicates whether the menu automatically enables and disables its menu items.

## Declaration

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

## Discussion

Discussion This property contains a Boolean value, indicating whether the menu automatically enables and disables its menu items. If set to true, menu items of the menu are automatically enabled and disabled according to rules computed by the NSMenuValidation informal protocol. By default, NSMenu objects autoenable their menu items.

## See Also

### Enabling and Disabling Menu Items

- [update()](appkit/nsmenu/update().md)
