<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMenu/autoenablesItems",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSMenu(py)autoenablesItems"
  },
  "title" : "autoenablesItems"
}
-->

# autoenablesItems

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

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

## Discussion

This property contains a Boolean value, indicating whether the menu automatically enables and disables its menu items. If set to <doc://com.apple.documentation/documentation/Swift/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)