<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSDocumentTypeDocumentOption",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSDocumentTypeDocumentOption"
  },
  "title" : "NSDocumentTypeDocumentOption"
}
-->

# NSDocumentTypeDocumentOption

The document type.

```
extern NSAttributedStringDocumentReadingOptionKey NSDocumentTypeDocumentOption;
```

## Discussion

One of the document types described in [`NSAttributedStringDocumentType`](/documentation/AppKit/NSAttributedStringDocumentType), indicating a document type to be forced when loading the document. The previous string constant was `@"DocumentType"`.

---

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)