Re: How to hide a table view column from Accessibility hierarchy?
Re: How to hide a table view column from Accessibility hierarchy?
- Subject: Re: How to hide a table view column from Accessibility hierarchy?
- From: Mike Engber <email@hidden>
- Date: Thu, 14 Jan 2010 13:15:01 -0800
On Jan 14, 2010, at 11:56 AM, Christiaan Hofman wrote:
I'm not talking about returning an empty array, I'm talking about
returning YES from accessibilityIsIgnored.
Something to keep in mind. Returning YES from accessibilityIsIgnored
does not prune a UI Element's branch from the accessibility hierarchy.
All it does is suppress that particular element. Its descendants will
(should) still show up in the hierarchy, parented to the next un-
ignored ancestor.
In the case of leaf UI Elements, ignoring might sometimes seem to
successfully hide them, but it can often be problematic. E.g. hit
testing or focus testing might return that view - which might (or
might not) produce correct results.
The only bullet proof way to hide a UI Element is to:
- make sure its parent excludes it from its children
- hit testing doesn't report it
- focus testing doesn't report it
- ensure it not returned by any other attributes (e.g.
titleUIElement, ...)
Currently, this is not easy to do because:
- Excluding from the parent's children might require subclassing the
parent which can sometimes be problematic.
- Excluding from hit testing or focus testing may require subclassing
the window that contains the UI Element (e.g. if the element is an
NSView)
I think there's already a bug filed requesting a simpler way to hide a
UI Element.
-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