• 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: "Giovanni Donelli" <email@hidden>
  • Date: Thu, 18 Jan 2007 09:57:57 +0100

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.

Once again,
thank you for your help,

Giovanni Donelli

On 1/16/07, Eric Schlegel <email@hidden> wrote:

On Jan 16, 2007, at 12:28 PM, Giovanni Donelli wrote:

> it seems very strange that there is no CG API to get the current mouse
> location out of the event stream. I would say that's what the
> WindowServer does all the time!

The design focus for application development on Mac OS X is the upper
stacks, Carbon and Cocoa. Both Carbon and Cocoa offer APIs for this.
The CG framework is not designed for use as an application development
environment itself, so there are many API that are only offered at the
upper levels and not at the CG level.

-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


  • Follow-Ups:
    • Re: Mouse location in CG
      • From: Eric Schlegel <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>)

  • Prev by Date: Re: Data not written immediately to nstextview
  • Next by Date: Core data confused
  • Previous by thread: Re: Mouse location in CG
  • Next by thread: Re: Mouse location in CG
  • Index(es):
    • Date
    • Thread