Re: Main Event queue
Re: Main Event queue
- Subject: Re: Main Event queue
- From: Ken Thomases <email@hidden>
- Date: Wed, 5 Aug 2009 04:24:57 -0500
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@hidden)
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:
This email sent to email@hidden