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

# didBeginTrackingNotification

Posted when menu tracking begins.

```
class let didBeginTrackingNotification: NSNotification.Name
```

## Discussion

The notification object is the main menu bar (`[NSApp mainMenu]`) or the root menu of a popup button. This notification does not contain a `userInfo` dictionary.

> Note:
> This notification is available in versions 10.3 and 10.4 of macOS, however it is not publicly declared so you must declare the name constant as an `extern`, for example:
> 
> ```objc
> extern NSString *NSMenuDidBeginTrackingNotification;
> ```

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

---

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)