---
title: NSSpellingState
framework: appkit
role: symbol
role_heading: Enumeration
path: appkit/nsspellingstate
---

# NSSpellingState

Constants for the spelling state attribute key.

## Declaration

```occ
enum NSSpellingState : NSInteger;
```

## Overview

Overview Use these constants as the values for the NSSpellingStateAttributeName key.

## Topics

### Getting the spelling states

- [NSSpellingStateGrammarFlag](appkit/nsspellingstate/nsspellingstategrammarflag.md)
- [NSSpellingStateSpellingFlag](appkit/nsspellingstate/nsspellingstatespellingflag.md)

## See Also

### Getting text content attributes

- [TextKit string attribute keys](appkit/textkit-string-attribute-keys.md)
- [NSTextHighlightStyle](appkit/nstexthighlightstyle.md)
- [NSTextHighlightColorScheme](appkit/nstexthighlightcolorscheme.md)
- [NSTextEffectStyle](appkit/nstexteffectstyle.md)
- [NSUnderlineStyle](appkit/nsunderlinestyle.md)
- [NSWritingDirectionFormatType](appkit/nswritingdirectionformattype.md)
