addCursorRect:cursor
addCursorRect:cursor
- Subject: addCursorRect:cursor
- From: Trygve Inda <email@hidden>
- Date: Fri, 08 Sep 2006 16:07:18 +0000
- Thread-topic: addCursorRect:cursor
Apple says:
> Changing the cursor is such a common operation that NSView defines several
> convenience methods to ease the process.
And later...
> This method is intended to be invoked only by the resetCursorRects method. If
> invoked in any other way, the resulting cursor rectangle will be discarded the
> next time the view's cursor rectangles are rebuilt.
So how do I do this if I can't call it myself?
I have an NSButton that I want to have force the cursor to change as it
passes over it. Do I need to subclass it and include addCursorRect:cursor?
Surely there is an easier way since then I would have to programmatically
define my button whereas now I use IB to set all its attributes.
Thanks,
Trygve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden