Instance Method

removeCursorRect:cursor:

Completely removes a cursor rectangle from the view.

Declaration

- (void)removeCursorRect:(NSRect)rect cursor:(NSCursor *)object;

Parameters

aRect

A rectangle defining a region of the view. Must match a value previously specified using addCursorRect:cursor:.

aCursor

An object representing a cursor. Must match a value previously specified using addCursorRect:cursor:.

Discussion

You should rarely need to use this method. The resetCursorRects method, which is called when the cursor rectangles need to be rebuilt, should establish only the cursor rectangles needed. If you implement resetCursorRects in this way, you can then simply modify the state that resetCursorRects uses to build its cursor rectangles and then invoke the NSWindow method invalidateCursorRectsForView:.

See Also

Managing Cursor Tracking

- addCursorRect:cursor:

Establishes the cursor to be used when the mouse pointer lies within a specified region.

- discardCursorRects

Invalidates all cursor rectangles set up using addCursorRect:cursor:.

- resetCursorRects

Overridden by subclasses to define their default cursor rectangles.