On Jan 28, 2008 8:02 PM, Jayson Adams <email@hidden> wrote:
> So yes, he was asking how you get the current mouse location, and was
> believing there's no way to do it.
Your willful disregard of the very next sentence after the bit you
quoted does not serve to illuminate anything. Here, again, is the
> (C) How do I know where the mouse is, in the absence of (prior to
> receiving) a mouse-related event?
> -- There is not, afaik, any Cocoa frameworks function or method that
> gets the mouse location other than from a NSEvent. (It may exist and I
> just haven't found it.)
> -- Getting the current mouse location using Carbon (if there is a
> function for that) isn't the answer, because that's going to tell me
> where the mouse is *right now in real time*, while the information I
> need is where the mouse is *synchronized with the event stream*. (If
> I'm about to receive a flood of mouseMoved: or mouseDragged: messages,
> I want to know where the mouse is before them, not after. Unreceived
> messages represent the future, I'm still in the present.)
I know you think that the real-time location is all that matters, but
you are wrong, and I think it's important to make that plain, because
you seem to be seeking to obfuscate it.
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