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 17:41:46 -0700
On Tuesday, August 13, 2002, at 05:17 PM, Allan Odgaard wrote:
Hi there,
I'm going crazy with the event stuff in Cocoa.
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.
see: - (void)setAcceptsMouseMovedEvents:(BOOL)flag in the NSWindow
documentation.
-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.