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

# NSSpellingState

Constants for the spelling state attribute key.

```
enum NSSpellingState : NSInteger;
```

## Overview

Use these constants as the values for the [`NSSpellingStateAttributeName`](/documentation/AppKit/NSSpellingStateAttributeName) key.

## Topics

### Getting the spelling states

[`NSSpellingStateGrammarFlag`](/documentation/AppKit/NSSpellingState/NSSpellingStateGrammarFlag)

Flag for grammar issues.

[`NSSpellingStateSpellingFlag`](/documentation/AppKit/NSSpellingState/NSSpellingStateSpellingFlag)

Flag for spelling issues.



---

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)