Returns the range of selected text.
- macOS 10.0–10.6Deprecated
The range of selected text.
The returned range measures from the start of the receiver’s text storage. If there is no selection, the return value’s
NSNotFound, and its
length is 0.
Returns a Boolean value indicating whether or not the receiver has marked text.
Returns the range of the marked text.
Replaces currently marked text in the receiver’s text storage with the given string and sets the selection to the given range, computed from the beginning of the marked text.
Removes any marking from pending input text and disposes of the marked text as it wishes. The text view should accept the marked text as if it had been inserted normally.