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:12:37 -0400
On 8/27/07, I. Savant <email@hidden> wrote:
> > 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?"
I'm an idiot. :-D I kept reading that as the -mouseEntered:,
-mouseExited:, and -mouseMoved: methods ... even though I *wrote*
-mouseDown: myself ... (sigh)
In short, I have steered you wrong.
> What makes you think a cursor rect has anything to do with
> mouse-down events? It's a *cursor* rect. ;-)
*THIS* is still accurate, though. So is my original statement about
your question. Tracking where some random mouse event isn't what you
should be interested in ... working out why the event isn't making it
to your custom view is.
How have you verified your custom view's -mouseDown: method is not
being called? NSLog()? A breakpoint? Are you returning YES for
-acceptsFirstResponder: in your custom view?
--
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