• 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: Mouse location in CG
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mouse location in CG


  • Subject: Re: Mouse location in CG
  • From: Eric Schlegel <email@hidden>
  • Date: Thu, 18 Jan 2007 08:42:00 -0800


On Jan 18, 2007, at 12:57 AM, Giovanni Donelli wrote:

Thanks for the design insight.

Is there a way to get the mouse position at the cocoa or carbon level,
in the CG coordinate system (ie. Y zero is at the top left corner)? I
know I can get the the screens and then convert it, but I would like
not to do that if possible.

Carbon provides GetGlobalMouse, which returns coordinates in the CG coordinate system.
Cocoa provides [NSEvent mouseLocation], although I think that's with Y=0 at the bottom left of the main screen.


-eric

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Mouse location in CG (From: "Giovanni Donelli" <email@hidden>)
 >Re: Mouse location in CG (From: Spencer Salazar <email@hidden>)
 >Re: Mouse location in CG (From: "Giovanni Donelli" <email@hidden>)
 >Re: Mouse location in CG (From: Eric Schlegel <email@hidden>)
 >Re: Mouse location in CG (From: "Giovanni Donelli" <email@hidden>)

  • Prev by Date: Re: NSTextField not saving value to CoreData on Sheet Close
  • Next by Date: Re: Data not written immediately to nstextview
  • Previous by thread: Re: Mouse location in CG
  • Next by thread: OT: Objective-C Forum
  • Index(es):
    • Date
    • Thread