Instance Method

doubleClickAtIndex:

Returns the range of characters that form a word (or other linguistic unit) surrounding the given index, taking language characteristics into account.

Declaration

- (NSRange)doubleClickAtIndex:(NSUInteger)location;

Parameters

index

The index in the attributed string.

Return Value

Returns the range of characters that form a word (or other linguistic unit) surrounding the given index, taking language characteristics into account.

Discussion

Raises an NSRangeException if index lies beyond the end of the receiver’s characters.

See Also

Calculating Linguistic Units

- lineBreakBeforeIndex:withinRange:

Returns the appropriate line break when the character at the index won’t fit on the same line as the character at the beginning of the range.

- lineBreakByHyphenatingBeforeIndex:withinRange:

Returns the index of the closest character before the given index, and within the given range, that can be placed on a new line by hyphenating.

- nextWordFromIndex:forward:

Returns the index of the first character of the word after or before the given index.