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

# menu

Returns the responder’s menu.

```
var menu: NSMenu? { get set }
```

## Discussion

For `NSApplication` this menu is the same as the menu returned by its [`mainMenu`](/documentation/AppKit/NSApplication/mainMenu) property.

## See Also

[`defaultMenu`](/documentation/AppKit/NSView/defaultMenu)

Overridden by subclasses to return the default pop-up menu for instances of the receiving class.

[`menu(for:)`](/documentation/AppKit/NSView/menu(for:))

Overridden by subclasses to return a context-sensitive pop-up menu for a given mouse-down event.



---

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)