Re: Using title UI element in custom descriptions
Re: Using title UI element in custom descriptions
- Subject: Re: Using title UI element in custom descriptions
- From: Mike Engber <email@hidden>
- Date: Wed, 19 Jul 2006 12:57:37 -0700
For a particular set of math problems, this shows the number of
problems answered correctly. I want the custom description to be:
5 of 10 problems correct progress bar
The description should be just "problems correct" The fact that it's
a progress bar should come from its role. The 5 of 10 should come
from its value and maxValue attributes.
If you don't do it this way, when VoiceOver composes the string it
speaks it will produce something incorrect.
id theTitleUIElement = [super
accessibilityAttributeValue:NSAccessibilityTitleUIElementAttribute];
Now, as to why your always getting nil. James was correct in pointing
out that if the attribute's value is overridden (in IB or in code) we
don't provide a way to get the value.
You could file a bug requesting a new API. But, it's not something
that's normally need - your example doesn't warrant it.
-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