kAXWindowsAttribute and Spaces
kAXWindowsAttribute and Spaces
- Subject: kAXWindowsAttribute and Spaces
- From: Evan DiBiase <email@hidden>
- Date: Wed, 13 May 2009 15:01:24 -0400
Hello,
I'm working on an application in which I'd like to be able to get the
titles of all open windows. It attempts to do so by obtaining an
AXUIElementRef for each PID returned by the GetNextProcess call, and
then retrieving the value for the kAXWindowsAttribute of each
application AXUIElementRef.
In OS X 10.5.6, it appeared that the windows in all spaces were
returned as the value of kAXWindowsAttribute, but, in 10.5.7, it seems
that only the windows in the active space are returned. (I filed rdar://6883746
about this issue.)
After reading the "Hidden Cocoa apps have empty kAXWindowsAttribute"
thread from several years ago, however, I can see how this new
behavior is consistent with the API's philosophy that, if the windows
aren't visible, they're not available. But I wanted to check and make
sure that I wasn't seeing these results because I was doing something
wrong. And if I'm doing everything correctly and seeing correct
behavior, is there any other way that I can obtain the titles of all
open windows?
Thanks,
Evan
_______________________________________________
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