Instance Property

selectionAffinity

The preferred direction of selection.

Declaration

@property(readonly) NSSelectionAffinity selectionAffinity;

Discussion

Selection affinity determines whether, for example, the insertion point appears after the last character on a line or before the first character on the following line in cases where text wraps across line boundaries.

See Also

Managing the Selection

selectedRanges

An array containing the ranges of characters selected in the receiver’s layout manager.

- setSelectedRange:

Sets the selection to the characters in an array of ranges.

- setSelectedRange:affinity:stillSelecting:

Sets the selection to a range of characters in response to user action.

- setSelectedRanges:affinity:stillSelecting:

Sets the selection to the characters in an array of ranges in response to user action.

selectionGranularity

The selection granularity for subsequent extension of a selection.

insertionPointColor

The color of the insertion point.

- updateInsertionPointStateAndRestartTimer:

Updates the insertion point’s location and optionally restarts the blinking cursor timer.

selectedTextAttributes

The attributes used to indicate the selection.

markedTextAttributes

The attributes used to draw marked text.

linkTextAttributes

The attributes used to draw the onscreen presentation of link text.

- characterIndexForInsertionAtPoint:

Returns a character index appropriate for placing a zero-length selection for an insertion point associated with the mouse at the given point.