Re: Correction - Using title UI element in custom descriptions
Re: Correction - Using title UI element in custom descriptions
- Subject: Re: Correction - Using title UI element in custom descriptions
- From: Ricky Sharp <email@hidden>
- Date: Wed, 19 Jul 2006 16:17:57 -0500
On Jul 19, 2006, at 2:08 PM, James Dempsey wrote:
I've tried unsuccessfully in obtaining the title element.
Here's what I did in my cell subclass:
id theTitleUIElement = [super
accessibilityAttributeValue:NSAccessibilityTitleUIElementAttribute]
;
I mislead you about the line of code above. If the
NSAccessibilityTitleUIElementAttribute value is set as an
overridden accessibility attribute, the code above *will not*
return the overridden accessibility attribute. The overridden
value is applied when returning values to assistive apps, not in
the NSAccessibility protocol calls themselves.
You could make the NSAccessibilityTitleUIElementAttribute one of
the standard accessibility attributes of your cell subclass and add
an ivar in the cell subclass that refers to the title UI element,
but that may be overkill for what you are trying to do.
Also, don't bother trying to set up the overridden attribute
manually, you will not get different results.
This makes sense. And thanks for this update as now I don't have to
write more sample code :)
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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