On Tue, 14 Feb 2012 21:08:38 -0800, Kyle Sluder said:

>> Are you calling -type on the events you are receiving? Checking that
>value should make it clear whether the event you have received is a
>mouse event or not.  If not, and you need the mouse location, you can
>get if from NSEvent's +mouseLocation or a relevant window instance's -
>mouseLocationOutsideOfEventStream.
>
>The question is whether any debugging code can be added to catch
>instances where -type isn't being called before asking for the mouse location.

And since no one has said "yes", I've assumed it's "no" and filed 
<rdar://10868211> with the suggestion.

In the meantime, I'll create a category method that wraps locationInWindow and 
delegates to mouseLocation or similar otherwise.

Thanks to all who replied,

-- 
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to