Instance Method

resetCursorRects

Clears the window’s cursor rectangles and the cursor rectangles of the NSView objects in its view hierarchy.

Declaration

- (void)resetCursorRects;

Discussion

Invokes discardCursorRects to clear the window’s cursor rectangles, then sends resetCursorRects to every NSView object in the window’s view hierarchy.

This method is typically invoked by the NSApplication object when it detects that the key window’s cursor rectangles are invalid. In program code, it’s more efficient to invoke invalidateCursorRectsForView:.

See Also

Managing Cursor Rectangles

areCursorRectsEnabled

A Boolean value that indicates whether the window’s cursor rectangles are enabled.

- enableCursorRects

Reenables cursor rectangle management within the window after a disableCursorRects message.

- disableCursorRects

Disables all cursor rectangle management within the window.

- discardCursorRects

Invalidates all cursor rectangles in the window.

- invalidateCursorRectsForView:

Marks as invalid the cursor rectangles of a given NSView object in the window’s view hierarchy, so they’ll be set up again when the window becomes key (or immediately if the window is key).