Contents

discardCursorRects()

Invalidates all cursor rectangles set up using Addcursorrect(_:cursor:).

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 invalidateCursorRects(for:) and before the view’s cursor rectangles are reestablished using resetCursorRects(). This method is invoked just before the view is removed from a window and when the view is deallocated.

See Also

Related Documentation

Responding to Cursor Movements