<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSMenu/didChangeItemNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSMenuDidChangeItemNotification"
  },
  "title" : "didChangeItemNotification"
}
-->

# didChangeItemNotification

Posted after a menu item in the menu changes appearance.

```
class let didChangeItemNotification: NSNotification.Name
```

## Discussion

Changes include enabling/disabling, changes in state, and changes to title. The notification object is the instance of `NSMenu` with the menu item that changed. The `userInfo` dictionary contains the following information.

|Key                 |Value                                                                           |
|--------------------|--------------------------------------------------------------------------------|
|`@"NSMenuItemIndex"`|An `NSNumber` object containing the integer index of the menu item that changed.|

To observe this notification using Swift concurrency, use [`NSMenu.DidChangeItemMessage`](/documentation/AppKit/NSMenu/DidChangeItemMessage).

---

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)