Chris Hill
Chris Hill

Reputation: 1924

How to refresh/invalidate NSCursor?

When I update my cursor rect with resetCursorRects on my custom view, it correctly updates the cursor, as long as the user moves out of the rect, then back in. Is there a way where I can get the NSCursor to refresh without the user having to mouse out and back in?

Upvotes: 1

Views: 277

Answers (1)

Art Gillespie
Art Gillespie

Reputation: 8757

You probably want to call your NSWindow's

invalidateCursorRectsForView:

method.

Upvotes: 2

Related Questions