Re: How to track a lost mouseDown
Re: How to track a lost mouseDown
- Subject: Re: How to track a lost mouseDown
- From: "I. Savant" <email@hidden>
- Date: Mon, 27 Aug 2007 14:07:31 -0400
> I have custom view that is not receiving a mouseDown.
> How do most efficiently track what is happening to the event?
With respect, you're asking the wrong question. You need to ask,
"How do I receive -mouseDown: in my custom view?"
> My customView's - resetCursorRects gets called and the cursor changes
> correctly when mouse moves thru the rect.
> However when I then mouseDown (inside the changed cursorRect!) - nothing
What makes you think a cursor rect has anything to do with
mouse-down events? It's a *cursor* rect. ;-)
Search the docs for "tracking rect". You need to implement
-addTrackingRect:owner:userData:assumeInside: in all the right places
to add, keep track of, and remove tracking rects when your view's
frame changes or it's added to / removed from a
window/superview/whatever your situation calls for.
--
I.S.
_______________________________________________
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