Re: Mouse location in CG
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