| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Ricky, In Cocoa, you can use NSString *NSAccessibilityRoleDescription(NSString *role, NSString *subrole); You will find it, and a number of other helpful utility functions in NSAccessibility.h. Another related function is NSString *NSAccessibilityActionDescription(NSString *action); Also, you might find these functions useful for traversing the accessibility hierarchy: APPKIT_EXTERN id NSAccessibilityUnignoredAncestor(id element); APPKIT_EXTERN id NSAccessibilityUnignoredDescendant(id element); APPKIT_EXTERN NSArray *NSAccessibilityUnignoredChildren(NSArray *originalChildren); APPKIT_EXTERN NSArray *NSAccessibilityUnignoredChildrenForOnlyChild(id originalChild);
Wherever possible, please use existing roles, if the behavior of your UI object is the same or very similar to an existing element. For instance, radio buttons, the segmented control, and the tabs of a tab view are all accessorized as AXRadioButton, since they all give the user the ability to select one choice of a number of items. You might also want to take a look at the AXCanvas example in /Developer/Accessibility/AXCanvas. I hope this helps. -James On Jul 3, 2006, at 10:54 AM, Ricky Sharp wrote:
-------------------------------------------------- James Dempsey AppKit Engineering Apple |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Accessibility-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/accessibility-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.