Accessibility problems with subviews in table cell
Accessibility problems with subviews in table cell
- Subject: Accessibility problems with subviews in table cell
- From: Craig Hockenberry <email@hidden>
- Date: Tue, 30 Sep 2008 14:46:06 -0700
- Thread-topic: Accessibility problems with subviews in table cell
I've been attempting to make my app (Twitterrific) more accessible for blind
users: I've gotten a fair amount of support mail asking for it, so I dove
into the Accessibility APIs last week (i.e. I'm a total noob.)
The overwhelming majority of these users want to hear the text in each row
in the table read aloud with VoiceOver as they use the arrow keys to
navigate.
I'm using Joar Wingfoars SubviewTableViewController in the application. It
places an NSView into a table cell, allowing for a more complex UI in each
table row.
Unfortunately, I can't get the accessibility stuff working with this code.
VoiceOver just reports "unknown" or whatever the AXRoleDescription is set to
on the table cell.
I've put together a sample project with my experimentation:
<http://files.iconfactory.net/craig/bugs/SubviewTableViewTesterAccessible.zi
p>
The changes I've made are in SubviewTableViewCell.m (everything from the
accessibilityIsIgnored method to the end of the file.) Basically, I'm
delegating all the accessibility APIs to the cell's view instance. I've
assigned the table cell to the AXGroup role.
In looking at the resulting hierarchy in the Accessibility Inspector, I see
this:
...
<AXTable>
<AXRow>
<AXTextField>
AXValue: "0"
<AXGroup>
AXRoleDescription: "subview"
<AXTextField>
AXValue: "Explain"
<AXBusyIndicator>
AXValue: "false"
Unfortunately, VoiceOver only says this: "row 1 0 subview". I'd really like
it to say "row 1 0 Explain" (or whatever text is in the AXGroup's
AXTextField value.) Also, since there are multiple text fields in my
application, I'd like to know how to get VoiceOver to speak all of them.
Any help would be most appreciated!
-ch
_______________________________________________
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