Minimum requirements for a NSAccessibility object?
Minimum requirements for a NSAccessibility object?
- Subject: Minimum requirements for a NSAccessibility object?
- From: Håkan Waara <email@hidden>
- Date: Wed, 23 Aug 2006 15:46:02 +0200
What's the absolutely required methods and attributes that a generic
NSAccessibility object must support to show up in Accessibility
Verifier and Accessibility Inspector?
Currently they simply do not show my objects (and don't really help
me in determining what's missing). I'm supporting the following methods:
// general
- (id)accessibilityHitTest:(NSPoint)point;
- (BOOL)accessibilityIsIgnored;
- (id)accessibilityFocusedUIElement;
// attributes
- (NSArray*)accessibilityAttributeNames;
- (id)accessibilityAttributeValue:(NSString*)attribute;
- (BOOL)accessibilityIsAttributeSettable:(NSString*)attribute;
// actions
- (NSArray*)accessibilityActionNames;
- (NSString*)accessibilityActionDescription:(NSString*)action;
- (void)accessibilityPerformAction:(NSString*)action;
I support no actions, and no settable attributes. Here are the
attributes I support:
NSAccessibilityChildrenAttribute
NSAccessibilityParentAttribute
NSAccessibilityRoleAttribute
NSAccessibilitySubroleAttribute
NSAccessibilityRoleDescriptionAttribute
NSAccessibilityFocusedAttribute
NSAccessibilitySizeAttribute
NSAccessibilityPositionAttribute
NSAccessibilityWindowAttribute
AFAICS, I support all that are listed as mandatory in the API
reference, and even some more.
I wish NSAccessibility had more stricts requirements. Right now I
more or less have to guess what's missing or what's wrong.
Now and then, at the most, I get a NSException about some attribute
in the Xcode debugger, but unfortunately it provides no information
about what attribute emitted the error.
Any tips, or ideas are most welcome.
Regards,
Håkan Waara _______________________________________________
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