Sets one or more temporary attributes for the specified character range.
- macOS 10.0+
Attributes dictionary containing the temporary attributes to set.
The range of characters to which the specified attributes apply.
Temporary attributes are used only for onscreen drawing and are not persistent in any way.
NSText uses them to color misspelled words when continuous spell checking is enabled. Currently the only temporary attributes recognized are those that do not affect layout (colors, underlines, and so on).