Re: Traversing windows with Cocoa
Re: Traversing windows with Cocoa
- Subject: Re: Traversing windows with Cocoa
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 04 Mar 2008 06:29:54 -0500
- Thread-topic: Traversing windows with Cocoa
on 2008-03-03 5:25 PM, aldo kurnia at email@hidden wrote:
> So, I looked at Accessiblity API and NSApplication looks somewhat promising
> because it can give out its NSWindow children reference and there are
> functions to activate them. One missing piece of the puzzle though, is that I
> couldn't find any way to get a list of system-wide processes and create a
> NSApplication reference to them.
NSApplication has access only to those windows that belong to the
application itself. The Accessibility API is the way to go when you want
information about all windows on all running applications. However, you
won't have the same degree of control over windows in other processes that
you have over your own application's windows.
Unfortunately, the Accessibility API is not very well documented with
respect to writing applications that use it to read and control other
applications. You'll need to find the Accessibility function that creates a
global UI element, which you can then use to look at all the running
applications and their child UI elements.
You can see the kind of information that is made available by the
Accessibility API by running Apple's Accessibility Inspector. If you have
installed Xcode Tools, then Accessibility Inspector is in your Developer
folder. You can also try my PreFab UI Browser free for 30 days, downloadable
at the PreFab Software URL in my signature below.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden