Re: Problem with setting a cursor
Re: Problem with setting a cursor
- Subject: Re: Problem with setting a cursor
- From: Jim McGowan <email@hidden>
- Date: Mon, 7 Jun 2010 12:42:32 -0700
On 7 Jun 2010, at 12:01 , Gideon King wrote:
> I have a view where I set the cursor in a mouse moved event, when the mouse is over certain places in my view (resize handles for objects). This works fine, but sometimes I need to add some subviews to this view, and for some reason, when I do, it stops setting the cursors in some of the places where it should.
If I understand correctly you are calling NSCursor's -set from within your view's -mouseMoved: method. If you are just changing cursor to indicate resize control areas, it would probably be cleaner to override the view's -resetCursorRects: method and add cursor rects there, rather than try to force a change when an event is being handled.
Jim McGowan
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden