• 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: Re: Background Application Receiving Keyboard/Mouse Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Background Application Receiving Keyboard/Mouse Events


  • Subject: Re: Re: Background Application Receiving Keyboard/Mouse Events
  • From: "Jaime Rios" <email@hidden>
  • Date: Wed, 27 Sep 2006 12:53:32 -0400

Hi,
Apple has sample code to show how to do this with GetEventMonitorTarget:

http://developer.apple.com/samplecode/EventMonitorTest/index.html

I hope this helps you out.

-Jaime


On 9/27/06, Martin Köhler <email@hidden> wrote:

You can use GetEventMonitorTarget (part of Carbon Event Manager) to monitor events.

See
 http://developer.apple.com/documentation/Carbon/Reference/
Carbon_Event_Manager_Ref/Reference/reference.html

Note that AFAIK you'll need a Carbon run loop, NSApplicationMain
won't work.

Best regards,
       -- Martin


Am 27.09.2006 um 17:58 schrieb Jordan Evans:

> Is it possible to have an application that is running in the
> background receive keyboard and mouse events?
>
> If so, how do I set that up?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Background Application Receiving Keyboard/Mouse Events (From: "Jordan Evans" <email@hidden>)
 >Re: Background Application Receiving Keyboard/Mouse Events (From: Martin Köhler <email@hidden>)

  • Prev by Date: Re: 10.3.9 sdk
  • Next by Date: Re: detachDrawingThread:toTarget:withObject: vs detachNewThreadSelector:toTarget:withObject:
  • Previous by thread: Re: Background Application Receiving Keyboard/Mouse Events
  • Next by thread: Unable to create a deployment version
  • Index(es):
    • Date
    • Thread