Returns the dictionary of temporary attributes for the character range specified in effective
at character index char
.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
func temporaryAttributes(atCharacterIndex charIndex: Int, effectiveRange effectiveCharRange: NSRange Pointer?) -> [NSAttributed String.Key : Any]
Return Value
The dictionary of temporary attributes for the character range specified in effective
at character index char
.
Discussion
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).