Re: Getting mouse loc in flagsChanges method
Re: Getting mouse loc in flagsChanges method
- Subject: Re: Getting mouse loc in flagsChanges method
- From: Quincey Morris <email@hidden>
- Date: Thu, 24 Jan 2013 15:20:33 -0800
On Jan 24, 2013, at 14:44 , Sean McBride <email@hidden> wrote:
> Consider "mouseLocationOutsideOfEventStream".
This is not a completely correct solution. As its name indicates, this mouse location isn't synchronized with the event stream. That is, at the time the app is handling 'flagsChanged:', the location in 'mouseLocationOutsideOfEventStream' is some distance in the app's future -- possibly, if for example a disk is spinning up around the same time, several seconds in the future.
I think it's better to do this is by remembering state, in one of the ways that Kyle and Jens suggested.
However, even that's not completely correct. Any events consumed by modal event loops (such as control tracking) won't be visible to the state capturing code.
AFAIK there's no completely correct solution in Cocoa.
_______________________________________________
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