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

# usesUbiquitousStorage

Returns whether the document object stores its contents in the user’s iCloud document storage.

```
class var usesUbiquitousStorage: Bool { get }
```

## Discussion

This method’s default implementation returns <doc://com.apple.documentation/documentation/Swift/true> if your app has a valid iCloud document storage entitlement (`com.apple.developer.ubiquity-container-identifiers` or `com.apple.developer.icloud-container-identifiers`, as described in [Entitlement Key Reference](https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AboutEntitlements.html#//apple_ref/doc/uid/TP40011195)). When this method returns <doc://com.apple.documentation/documentation/Swift/true>, the system adds new menu items and other UI for iCloud documents, as appropriate, and allows documents to be saved or moved into the primary iCloud container. (The primary iCloud container is the one identified by the first container identifier string in the iCloud Containers list in the Xcode target editor.)

To indicate that your [`NSDocument`](/documentation/AppKit/NSDocument) subclass does not use iCloud storage, override this method to return <doc://com.apple.documentation/documentation/Swift/false>.

---

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)