On Jan 26, 2007, at 3:50 PM, Ian Archer wrote:
Without this order guarantee, there seems to be no way to limit a
hierarchy traversal. Consequently, a traversal can always have the
potential to explode when components have a large but practical number
of children.
According to the documentation, AXVisibleChildren attribute should be
used for scroll views and other components which can have children
scrolled out of view. As far as I can tell, there is no Apple widget
which supports this feature, which (at least, according to me) is
essential for any application which ever applies a hierarchy
traversal.
Could this be considered grounds for a bug report?
Definitely file a bug - but please call out the particular cases you are seeing.
There are a number of UI elements that use AXVisibleChildren or a similar 'visible' attribute.
AXList, AXRow, AXMenuBar, AXMenu, and AXRadioGroup have a visible children attribute.
AXTable, AXOutline provide a list of visible rows.
AXTable, AXOutline, and AXBrowser provide a list of visible columns.
So, I think for many cases of UI Elements that can contain a large number of children this is already in place.
Note also that it is not the scroll view that would have this property - for instance a scroll view contains a table view, it is the table that has the many rows.
What is the particular case that you are looking at?
-James
--------------------------------------------------