Instance Property

characters

The text storage contents represented as an array of characters.

Declaration

var characters: [NSTextStorage] { get set }

Discussion

Unless you are dealing with scriptability, you should not use or modify this property directly. For indexed access to characters, use NSAttributedString’s length method to access the string, and NSString’s character(at:) method to access the individual characters.

See Also

Accessing Scriptable Properties

var attributeRuns: [NSTextStorage]

The text storage contents represented as an array of attribute runs.

var paragraphs: [NSTextStorage]

The text storage contents represented as an array of paragraphs.

var words: [NSTextStorage]

The text storage contents represented as an array of words.

var font: NSFont?

The font associated with the text storage.

var foregroundColor: NSColor?

The color to use when drawing the text.