Re: accessibility vs dock
Re: accessibility vs dock
- Subject: Re: accessibility vs dock
- From: Eric Schlegel <email@hidden>
- Date: Tue, 9 Dec 2003 11:33:45 -0800
On Dec 9, 2003, at 11:13 AM, Joshua Kifer wrote:
Hi all, this is a continuation of the discussion about
inter-application notifications. My solution thus far, as recommended
by the various experts on this list, is to use the Accessibility API.
I've got that solution working, but there is one thing still bothering
me. In order for this API to work, it must be deliberately turned on
by the user. I assume as well, that it slows down the system.
Just having the accessibility API turned on shouldn't slow down the
system. As long as no one has observers registered, there's no
interprocess traffic going on.
What I am wondering is, how is the dock able to respond to application
hidden, shown, launch, and quit events without the Accessibility API
turned on?
It uses notifications sent by CoreGraphics. At the Carbon event level,
these notifications are turned into kEventClassApplication events:
kEventAppFrontSwitched, kEventAppLaunched, kEventAppTerminated.
Currently there's no Carbon event to indicate when some other
application is hidden, though.
-eric
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.