• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting mouse cursor position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Getting mouse cursor position (From: Gregory Weston <email@hidden>)
 >Re: Getting mouse cursor position (From: Nick <email@hidden>)

  • Prev by Date: Re: Getting mouse cursor position
  • Next by Date: Re: A Simple and Complete RunLoop Example
  • Previous by thread: Re: Getting mouse cursor position
  • Next by thread: Re: Getting mouse cursor position
  • Index(es):
    • Date
    • Thread