On Jan 24, 2013, at 14:44 , Sean McBride <[email protected]> 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 protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
