On Aug 4, 2009, at 7:10 PM, Sandro Noel wrote:

Is there a cocoa or carbon framework that would allow my software to hook onto the system main event queue, like in windows?
or to hook into the window manager.

I would like to peek at every message that traverse the main queue.

Do you mean just your own application's event queue or all on the system? Event taps are fine for either, but perhaps at too low a level or too broad a scope. If you only want to monitor the events of your own application, you might consider subclassing NSApplication and overriding -sendEvent:. That will be limited, however, to the main event loop. Modal event loops implemented around - nextEventMatchingMask:... methods don't necessarily pass events through -[NSApplication sendEvent:].

Regards,
Ken

_______________________________________________

Cocoa-dev mailing list ([email protected])

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