Re: Getting Carbon events in Cocoa
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