Re: The correct use of addCursorRect
Re: The correct use of addCursorRect
- Subject: Re: The correct use of addCursorRect
- From: "Ben Kennedy" <email@hidden>
- Date: Sat, 2 Nov 2002 20:13:42 -0500
- Organization: Zygoat Creative Technical Services
On 03,11,02 at 8:00 pm -0500, Matthew Smith wrote:
>
I'm curious about the correct use of addCursorRect. I want to have the
>
cursor become a hand when it is over a certain NSView, so I am calling the
>
following (self being an overridden NSView):
Couple of things:
a) where are you calling this code; is it in your view's -
resetCursorRects: method? That's where it needs to be.
b) once you put your code there, you should probably expect an i-beam
cursor (not a hand), since that's the NSCursor you're asking for. :)
>
Also, would I need to call the following to set the arrow cursor back?
Nope. Once the cursor is out of your rect, it will change to whatever
it's supposed to be there.
-b
--
Ben Kennedy, chief magician
zygoat creative technical services
613-228-3392 | 1-866-466-4628
http://www.zygoat.ca
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.