• 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: 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


  • Follow-Ups:
    • Re: Mouse location in CG
      • From: "Giovanni Donelli" <email@hidden>
References: 
 >Mouse location in CG (From: "Giovanni Donelli" <email@hidden>)

  • Prev by Date: RE: Weird Sheet Problem
  • Next by Date: Re: Add/Remove table column dynamicly
  • Previous by thread: Mouse location in CG
  • Next by thread: Re: Mouse location in CG
  • Index(es):
    • Date
    • Thread