Re: Getting Carbon events in Cocoa
Re: Getting Carbon events in Cocoa
- Subject: Re: Getting Carbon events in Cocoa
- From: "Tom Harrington" <email@hidden>
- Date: Thu, 30 Mar 2006 10:40:58 -0700
On 3/30/06, Mike Blaguszewski <email@hidden> wrote:
> 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.
OK, so I'd need some other approach for when I'm in the foreground.
That's not much of a problem though-- it's getting the keyboard events
while in the background that's giving me trouble.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
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