Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to get a kEventMouseExited at the edge of a window



>>> So 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 event
dispatcher
> target 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. 

Thanks,
Matt

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

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>)



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.