Skip navigation.
 
mlRe: EventMonitorTarget in Cocoa
FROM : Ken Thomases
DATE : Wed May 07 23:54:40 2008

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

Related mailsAuthorDate
mlEventMonitorTarget in Cocoa Mike May 7, 22:17
mlRe: EventMonitorTarget in Cocoa Ken Thomases May 7, 23:54