| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Mar 9, 2007, at 6:32 PM, Matthew Douglass wrote:
dispatcherSo why is it inevitable that I always send these emails and then have a brainstorm. I realized I could catch kEventMouseMoved at the application level and then just check if kEventParamWindowRef is my window or not.
That will work, but it will be a firehose of events :)
Unless mouse moved events are sent with kEventTargetSendToAllHandlers
option (which I believe is not the case, otherwise it would be mentioned
in the CarbonEvents.h), the mouse moved handler installed on a particular
window might interrupt the event flow by means of returning noErr from
the handler. Won't that be a problem? I haven't tried using eventtarget in this context but maybe it's more appropriate.
Well I did try this approach out and it seems to work correctly (so far).
Is the noErr return value you mentioned only from other windows in my
application or would it be possible for a non-foreground application's
window that is behind my app to do this?
If it's only my application's windows then it is a non-issue (for me) since
my app only has one window.
Only your own.
| References: | |
| >Re: How to get a kEventMouseExited at the edge of a window (From: John Stiles <email@hidden>) | |
| >Re: How to get a kEventMouseExited at the edge of a window (From: Mike Kluev <email@hidden>) | |
| >RE: How to get a kEventMouseExited at the edge of a window (From: "Matthew Douglass" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.