Role descriptions for custom controls
Role descriptions for custom controls
- Subject: Role descriptions for custom controls
- From: Ricky Sharp <email@hidden>
- Date: Mon, 03 Jul 2006 12:05:26 -0500
I'm in the process of making my Cocoa app accessibile. The app uses a completely custom UI (subclasses of NSView, NSControl and NSCell/NSActionCell). I thus have my own buttons, checkboxes, lists, etc.
I know I need to implement accessibilityAttributeValue: and return appropriate role constants for the NSAccessibilityRoleAttribute attribute. For example, when my IIButton object represents a checkbox, I'll have it send back NSAccessibilityCheckBoxRole.
Question...do I need to additionally have my custom objects return info for NSAccessibilityRoleDescriptionAttribute? Or, will the superclass be able to do the right thing
Building on the above example, because I'm setting NSAccessibilityCheckBoxRole for the NSAccessibilityRoleAttribute, will the superclass be able to look up the correct role description automatically? I'm hoping the answer is yes as that I would not need to store localized descriptions for these common UI elements.
In cases where I have a UI object that has no Apple equivalent, I do know that I'd need to provide both the role and description (basically what the Clock Control example code does).
Thanks,
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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