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

# allowsAutomaticShareMenu

A Boolean value that the system uses to insert a Share menu in the File menu.

```
var allowsAutomaticShareMenu: Bool { get }
```

## Discussion

If your application has any [`NSDocument`](/documentation/AppKit/NSDocument) subclasses with [`autosavesInPlace`](/documentation/AppKit/NSDocument/autosavesInPlace) set to `true`, the system defaults `allowsAutomaticShareMenu` to `true`. To disable the Share menu entirely, or to enable custom placement or construction of the share menu, override this property to return `false` in your app.

The system may not insert a Share menu if `allowsAutomaticShareMenu` is `true` and [`NSDocumentController`](/documentation/AppKit/NSDocumentController) detects that the app has a Share 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)