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

# defaultMenu

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

```
class var defaultMenu: NSMenu? { get }
```

## Discussion

The default implementation returns `nil`.

## See Also

[`menu`](/documentation/AppKit/NSResponder/menu)

Returns the responder’s menu.



---

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)