Returns an attributed string derived from the given range in the receiver's text storage.
- macOS 10.5+
The range in the text storage from which to create the returned string.
The actual range of the returned string if it was adjusted, for example, to a grapheme cluster boundary or for performance or other reasons.
NULLif range was not adjusted.
The string created from the given range. May return
An implementation of this method should be prepared for
a to be out of bounds. For example, the InkWell text input service can ask for the contents of the text input client that extends beyond the document’s range. In this case, you should return the intersection of the document’s range and
a. If the location of
a is completely outside of the document’s range, return