Re: Perform additional action when window receives any mouse- or keyDown
Re: Perform additional action when window receives any mouse- or keyDown
- Subject: Re: Perform additional action when window receives any mouse- or keyDown
- From: Murat Konar <email@hidden>
- Date: Tue, 16 Feb 2010 15:06:44 -0800
Uh, if I understand what the op wants to do correctly, overriding -
[NSWindow mouseDown:] isn't going to do it.
If the user clicks inside a view that overrides -mouseDown: (and
friends -rightMouseDown: and -otherMouseDown:), there's no guarantee
that your window's override will get called.
Overriding sendEvent seems like the best plan.
_murat
On Feb 16, 2010, at 1:05 PM, Jerry Krinock wrote:
On 2010 Feb 16, at 10:58, Paul Sanders wrote:
-[NSWindow mouseDown:]? (inherited from NSResponder).
Thanks, Paul. I hadn't realized that inheritance.
Also, I'd need -rightMouseDown:, -keyDown:, -otherMouseDown:, ???
At least, no notification needed.
_______________________________________________
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