Question about proper use of NSAccessibility APIs
Question about proper use of NSAccessibility APIs
- Subject: Question about proper use of NSAccessibility APIs
- From: "Brant Sears" <email@hidden>
- Date: Tue, 10 Jan 2006 12:55:39 -0500
- Thread-topic: Question about proper use of NSAccessibility APIs
Title: Question about proper use of NSAccessibility APIs
Hi. This is kind of a Cocoa-centric question, so I hope it is OK to post it here.
When I use the "Accessibility Verifier" application, I get some warnings about missing AXDescription. I went into Interface Builder and added descriptions and help info for all of the buttons in my nib files. However, I also have an NSMatrix that contains a group of NSButtonCell controls. I need to add the AXDescription and help information programatically. I am trying to use the following:
[myCell accessibilitySetValue: myDescriptionString forAttribute:NSAccessibilityTitleAttribute];
[myCell accessibilitySetValue: myHelpString forAttribute:NSAccessibilityHelpAttribute];
where myCell is an NSButtonCell * and myDescriptionString/myHelpString are NSString *.
The problem is that this causes an exception to be raised. Obviously I am doing something wrong here. I'm guessing that if I call accessibilityIsAttributeSettable: using these attributes on my button cells, I will find that these attributes are not settable.
So, my question is, "What is the right thing to do?" to accomplish the goal of having an app that correctly provides the hooks for Accessibility.
Brant Sears
_______________________________________________
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