• 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: Tue, 16 Jan 2007 21:28:28 +0100

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!

Thank you for your help, I will investigate the CGEventTap API.

Giovanni

On 1/15/07, Spencer Salazar <email@hidden> wrote:
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: Eric Schlegel <email@hidden>
References: 
 >Mouse location in CG (From: "Giovanni Donelli" <email@hidden>)
 >Re: Mouse location in CG (From: Spencer Salazar <email@hidden>)

  • Prev by Date: Re: Preventing NSSlider bar from drawing
  • Next by Date: Re: Preventing NSSlider bar from drawing
  • Previous by thread: Re: Mouse location in CG
  • Next by thread: Re: Mouse location in CG
  • Index(es):
    • Date
    • Thread