Re: [TRTFM] mouseMove invoked on non-FrstResponder?
Re: [TRTFM] mouseMove invoked on non-FrstResponder?
- Subject: Re: [TRTFM] mouseMove invoked on non-FrstResponder?
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 13 Aug 2002 19:13:20 -0700
On Tuesday, August 13, 2002, at 06:00 PM, Allan Odgaard wrote:
On onsdag, august 14, 2002, at 02:41 , John C. Randolph wrote:
I have a view in which I want to receive mouse move events, even
though this view isn't the first responder (an NSTextField often is)
-- I read somewhere that mouse events were distributed to all
objects, but perhaps that only apply to mouse up/down, cause I don't
get my move-events. [...]
You have to set the window's event mask to include mouse moved
events. They're ignored by default.
Which I do... as my letter says: I do (mostly) get the events as long
as my view is in the responder chain.
Sorry, I wasn't reading carefully. Your view does have to be in the
responder chain to get mouseMoved: events passed to it automatically.
Does your view always care about mouse moved events, or only when the
mouse is over the view in question?
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.