• 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: Scott Thompson <email@hidden>
  • Date: Fri, 31 Mar 2006 10:04:42 -0600

How can I get these keyboard events in an app with a Cocoa event loop running?

[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.]

Perhaps a better question would be

"What are you trying to accomplish?"

Why do you need to capture keystrokes while you are in the background?

Scott

_______________________________________________
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>)

  • Prev by Date: Re: Opening a window in Core Data application
  • Next by Date: Re: Opening a window in Core Data application
  • Previous by thread: Re: Getting Carbon events in Cocoa
  • Next by thread: moving views
  • Index(es):
    • Date
    • Thread