Re: Consistency of arrays of AXUIElementRefs
Re: Consistency of arrays of AXUIElementRefs
- Subject: Re: Consistency of arrays of AXUIElementRefs
- From: Ricky Sharp <email@hidden>
- Date: Sat, 5 Jan 2008 15:15:07 -0600
On Jan 5, 2008, at 2:25 PM, David Hoerl wrote:
Using UI Browser to poke around in a few apps, looking at their
hierarchies, one often sees an element with a "children" array of
AXUIElementRefs. In some cases you see several (UI Browser shows
these as "group (group n)", where n starts at one and increases by
one for each similar type).
Well, these items, at this level, appear to have no other unique
identifier (unless you count their position or size, etc - what I
mean is they have no unique name).
So, the question becomes: given some app at version x.y.z on a
given OS (Leopard), will their ordinal position in the array stay
constant over time?
If not, then I'm guessing I will have to traverse all possible paths
to my final destination, somewhat like a network routing algorithm
that tries all possible paths to reach the destination.
This is a tough one. The hierarchy for accessibility should always be
flatter than the real UI hierarchy. I know when I did work with
custom UI, my container objects are never included. For example, a
real view hierarchy could be:
+ container view
* about button
* quit button
But you want that to show up as the following for accessibility:
* about button
* quit button
My custom UI still makes use of tabless tab views (in some cases,
nested to up to 3 levels). And, they each show up as a "group".
Thus, some of my hierarchy ends up like this:
+ group 1
+ group 1
+ group 1
* minimum sum value field
I have on my todo list, a mechanism to broadcast the title of the
group (which should be the title of the currently selected tab). The
hierarchy would then be:
+ group 1 (problem generation)
+ group 1 (addition)
+ group 1 (range of sums)
* minimum sum value field
I may have to create my own custom class to pull this off; not sure yet.
In this case, you could at least reference the containers by name and
select the appropriate sub-panel (tab).
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.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