Re: Mouse location in CG
Re: Mouse location in CG
- Subject: Re: Mouse location in CG
- From: Spencer Salazar <email@hidden>
- Date: Mon, 15 Jan 2007 17:07:43 -0500
Hi,
Check out the CGEventTap API (introduced in 10.4). Although it
doesn't offer an exact replacement for -[NSEvent mouseLocation], its
fairly easy and straightforward to use, and it can integrate with
existing CFRunLoop-based code.
spencer
On Jan 15, 2007, at 10:13 AM, Giovanni Donelli wrote:
Dear Developers,
I am writing an App that heavily works with the CoreGraphics.
For certain specific reasons I need a function such as
[NSEvent mouseLocation]
which polls the mouse to get the current mouse position.
Is there an equivalent in CoreGraphics? I don't want to (really
cannot) use cocoa or carbon APIs.
Thank you,
Giovanni
_______________________________________________
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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