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

# willSendActionNotification

Posted just before the application dispatches a menu item’s action method to the menu item’s target.

```
class let willSendActionNotification: NSNotification.Name
```

## Discussion

The notification object is the instance of `NSMenu` containing the chosen menu item. The `userInfo` dictionary contains the following information.

|Key          |Value                         |
|-------------|------------------------------|
|`@"MenuItem"`|The menu item that was chosen.|

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

---

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)