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

# NSDefaultAttributesDocumentAttribute

The default document attributes.

```
extern NSAttributedStringDocumentAttributeKey NSDefaultAttributesDocumentAttribute;
```

## Discussion

The value of this attribute is an NSDictionary object containing attributes to be applied to plain files. Used by reader methods. This key in options can specify the default attributes applied to the entire document contents. Upon return, the document attributes can contain this key indicating the actual attributes used.+

The string constant in macOS 10.3 and earlier is `@"DefaultAttributes"`.

---

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)