Re: Getting mouse cursor position
Re: Getting mouse cursor position
- Subject: Re: Getting mouse cursor position
- From: Andy Lee <email@hidden>
- Date: Sat, 07 May 2011 15:20:03 -0400
On May 7, 2011, at 1:28 PM, Nick wrote:
> Gregory,
> what do you mean by "if you have an event"? Could you elaborate on it please?
He means if you have an instance of NSEvent. Some methods, such as -[NSResponder mouseDown:], -[NSResponder keyDown:], -[NSWindow currentEvent], and -[NSApplication currentEvent], provide you with an instance of NSEvent. If you're overriding or calling one of those methods you may want to use the associated event instance.
--Andy
_______________________________________________
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