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

# spellCheckerDocumentTag

A tag identifying the text view’s text as a document for the spell checker server.

```
var spellCheckerDocumentTag: Int { get }
```

## Discussion

The document tag is obtained by sending a [`uniqueSpellDocumentTag()`](/documentation/AppKit/NSSpellChecker/uniqueSpellDocumentTag()) message to the spell server the first time this method is invoked for a particular group of text views. See the [`NSSpellChecker`](/documentation/AppKit/NSSpellChecker)and <doc://com.apple.documentation/documentation/Foundation/NSSpellServer>class specifications for more information on how this tag is used.

---

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)