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

# NSKeywordsDocumentAttribute

The document keywords.

```
extern NSAttributedStringDocumentAttributeKey NSKeywordsDocumentAttribute;
```

## Discussion

The value of this attribute is an <doc://com.apple.documentation/documentation/Foundation/NSArray> object containing <doc://com.apple.documentation/documentation/Foundation/NSString> objects, containing keywords.

---

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)