Invalidates all cursor rectangles set up using add
.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
func discardCursorRects()
Discussion
You need never invoke this method directly; neither is it typically invoked during the invalidation of cursor rectangles. NSWindow
automatically invalidates cursor rectangles in response to invalidate
and before the view's cursor rectangles are reestablished using reset
. This method is invoked just before the view is removed from a window and when the view is deallocated.