Instance Method

showFindIndicatorForRange:

Causes a temporary highlighting effect to appear around the visible portion (or portions) of the specified range.

Declaration

- (void)showFindIndicatorForRange:(NSRange)charRange;

Parameters

charRange

The character range around which indicators appear.

Discussion

This method supports lozenge-style indication of find results. The indicators automatically disappear after a certain period of time, or when the method is called again, or when any of a number of changes occur to the view (such as changes to text, view size, or view position).

This method does not itself scroll the specified range to be visible; any desired scrolling should be done before this method is called, first, because the method acts only on the visible portion of the specified range, and, second, because scrolling causes the indicators to disappear. Calling this method with a zero-length range always removes any existing indicators.

See Also

Controlling Display

- setNeedsDisplayInRect:avoidAdditionalLayout:

Marks the receiver as requiring display.

shouldDrawInsertionPoint

A Boolean value that determines whether the receiver should draw its insertion point.

- drawInsertionPointInRect:color:turnedOn:

Draws or erases the insertion point.

- drawViewBackgroundInRect:

Draws the background of the text view.

- setConstrainedFrameSize:

Attempts to set the frame size as if by user action.

- cleanUpAfterDragOperation

Releases the drag information still existing after the dragging session has completed.