On May 7, 2008, at 3:17 PM, Mike wrote:

I see this has been asked many times before on this list but there doesn't seem to be a definitive answer: does the CG Event tap work in Cocoa apps or not? If not how can one grab keystrokes from other apps in a Cocoa app?

"CG Event tap" and "EventMonitorTarget" are two different (although related) things.

Core Graphics (AKA Quartz) is at a level below both Cocoa and Carbon. There's nothing Carbon-specific about CG Event taps. I'm certain that it will work in a Cocoa app.

GetEventMonitorTarget is Carbon-specific. I don't know if it can be meaningfully used in a Cocoa app.

-Ken
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to