• 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: Getting Carbon events in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Carbon events in Cocoa


  • Subject: Re: Getting Carbon events in Cocoa
  • From: Mike Blaguszewski <email@hidden>
  • Date: Thu, 30 Mar 2006 12:27:29 -0500

On Mar 30, 2006, at 12:13 PM, Tom Harrington wrote:

[And in case anyone's wondering, I'm using Carbon here because Cocoa
doesn't appear to have an equivalent to GetEventMonitorTarget().
Using NSEvent doesn't cut it here because it won't receive the events
unless my app is in the foreground, while GetEventMonitorTarget() will
receive the events at all times.]

Unfortunately, this is not the case. From the GetEventMonitorTarget() docs:
Handlers installed on the event monitor target receive events only when
the current application is inactive. When the current application is
active, all events flow through the event dispatcher target, and no events
are sent to the event monitor target.


So you'd need to run it in a separate process if you want it to capture all events.

--
Mike Blaguszewski / Ambrosia Software, Inc.



_______________________________________________
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


  • Follow-Ups:
    • Re: Getting Carbon events in Cocoa
      • From: "Tom Harrington" <email@hidden>
References: 
 >Getting Carbon events in Cocoa (From: "Tom Harrington" <email@hidden>)

  • Prev by Date: Getting Carbon events in Cocoa
  • Next by Date: Re: Pop up window ala msn messenger
  • Previous by thread: Getting Carbon events in Cocoa
  • Next by thread: Re: Getting Carbon events in Cocoa
  • Index(es):
    • Date
    • Thread