• 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: "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

References: 
 >Getting Carbon events in Cocoa (From: "Tom Harrington" <email@hidden>)
 >Re: Getting Carbon events in Cocoa (From: Mike Blaguszewski <email@hidden>)

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