The NSView
class provides methods for adding, removing, discarding, and resetting pointer rectangles—areas where the pointer image changes when the pointer enters them. The NSWindow
class overrides some of these methods and provides additional methods for working with pointer rectangles. For example, a window can:
Disable and reenable all of its pointer rectangles with disableCursorRects
and enableCursorRects
.
Determine if its pointer rectangles are enabled with areCursorRectsEnabled
.
Reset the pointer rectangles for a particular view with invalidateCursorRectsForView:
.
Reset all its pointer rectangles with resetCursorRects
.
© 2002, 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-02-04)