Re: putting labels on tables
Re: putting labels on tables
- Subject: Re: putting labels on tables
- From: James Dempsey <email@hidden>
- Date: Thu, 24 Jul 2008 10:31:49 -0700
On Jul 24, 2008, at 8:53 AM, Travis Siegel wrote:
I've seen in a couple places where a table has an identifier
accessibility tag, so voiceover users can see what the table contains.
However, I'm a little stumped on how to do this myself.
I have a screen that contains two tables, and I'd like to make voice
identify each one as it's appropriate function. I.E. one for items,
and one for groups.
How would I go about doing this, and where would I look for samples
of such.
Using xtools 3.0, most items can now be assigned accessibility tags,
which is a very nice change, but for some reason, tables don't seem
to be able to be tagged in this way, (possibly because they don't
really exist until after they're setup in the code, but there's
still areas for them in the nib files)
Any suggestions would be appreciated.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (Accessibility-
email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
If you are setting the table up in Interface Builder, you can select
the table view, and add an accessibility description in the Identity
pane of the inspector window. Make sure you have the table view
selected, not the scroll view that contains the table view.
Also note that the description string should be lowercase, and not
include the name of the element itself. Below is an example.
If you are creating the table programmatically, you can do the same
thing by using the code:
NSTableView *tableView; // assume this exists
NSString *localizedDescription; // assume this exists
[NSUnignoredDescendant(tableView) accessibilitySetOverrideValue:
localizedDescription forAttribute:NSAccessibilityDescriptionAttribute];
The function NSUnignoredDescendant() ensures you are attaching the
overridden value to an element that is not ignored by accessibility.
You should use a localized string. For nib files, you would localized
the nib file itself, including its accessibility descriptions.
-James
--------------------------------------------------
James Dempsey
AppKit Engineering
Apple
email@hidden
_______________________________________________
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