Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Minimum requirements for a NSAccessibility object?



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:
http://lists.apple.com/mailman/options/accessibility-dev/email@hidden

This email sent to email@hidden


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.