Re: Main Event queue
Re: Main Event queue
- Subject: Re: Main Event queue
- From: Ken Thomases <email@hidden>
- Date: Wed, 5 Aug 2009 10:42:22 -0500
On Aug 5, 2009, at 9:50 AM, Sandro Noel wrote:
what I would like to do is broad range, get information about every
action for every application in my current desktop session.
Window movement, hide, show, activate, deactivate, open, close,
mouse movement, drag and drop operations, contextual menus pop-up.
I want to know everything.
Raw mouse movements, or mouse clicks are of little interest, so are
keyboard events.
What i am interested in is the action happening after a mouse
movement or click, or keyboard shortcuts, menu selections has
happened.
anything that influences display of content on the desktop.
Hmm, I don't think you can quite achieve that.
Event taps can only give you the low-level events like mouse clicks
and key presses.
The individual frameworks (Carbon and Cocoa) are responsible for
interpreting those events into the higher-level behaviors you're
talking about. And that generally occurs inside of individual
application processes, not centrally in the window server where event
taps operate.
You might look into the Accessibility API. That can probably give a
richer description of what's happening, although perhaps not as rich
as you're hoping.
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