Re: Voice Over Performance for Complex Custom View
Re: Voice Over Performance for Complex Custom View
- Subject: Re: Voice Over Performance for Complex Custom View
- From: Mike Engber <email@hidden>
- Date: Thu, 17 Sep 2009 14:53:22 -0700
On Sep 17, 2009, at 10:38 AM, Xiang Cao wrote:
I changed the hash to return the pointer of real view instead of
recursive.
But the performance does not become better. To answer your question,
my real
GUI object are in C++, not Object C. That's why I have to create a
fake
structure for accessibility.
I would not expect the hash function to affect performance.
About the three new functions, I still cannot get it work.
So, it's still not working at all? Or, are we talking about performance?
My question is
when they ask about children's count, subarray or index, do they
mean their
unignored children or the direct children? You mentioned for the sub
array
you have to always return the unignored children, but what about the
count
and the index? What are the target objects they are asking?
The key is to be consistent with the accessibility hierarchy. E.g. If
you have a
ui element with 3 children and the second child is ignored, it's
important that:
- You never report the second, ignored, child as part the the
children array, hit testing,
focus testing, ... This was NSAccessibilityIngoredChildren is
supposed to help with.
- You report the 3rd child's index as 1 (instead of 2). Since child
that's actually at
index 1 is ignored, accessibility knows nothing about it so all the
children that come
after it have to have their indexes adjusted appropriately.
General rule of thumb, you're exposing a hierarchy of the unignored ui
elements. All
the information you provide needs to be consistent with this hierarchy.
If your code isn't working then the odds are you're not exposing the
hierarchy consistently.
-ME
_______________________________________________
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