Instance Property

rangeForUserCompletion

The partial range from the most recent beginning of a word up to the insertion point.

Declaration

@property(readonly) NSRange rangeForUserCompletion;

Discussion

This value is intended to be used for the range argument in the text completion methods such as completionsForPartialWordRange:indexOfSelectedItem:.

See Also

Text Completion

- complete:

Invokes completion in a text view.

- completionsForPartialWordRange:indexOfSelectedItem:

Returns an array of potential completions, in the order to be presented, representing possible word completions available from a partial word.

- insertCompletion:forPartialWordRange:movement:isFinal:

Inserts the selected completion into the text at the appropriate location.