Re: Adding accessibility tags to a button cell in a cell
Re: Adding accessibility tags to a button cell in a cell
- Subject: Re: Adding accessibility tags to a button cell in a cell
- From: James Dempsey <email@hidden>
- Date: Mon, 12 Oct 2009 17:39:26 -0700
On Oct 12, 2009, at 4:19 PM, Tina Wen wrote: I have a configuration like this: window -> control view -> nstable -> nscell (as rows in table) -> nsbuttoncell. I want to add accessibility tags to these button cells. I tried to call accessibilitySetOverrideValue, but this doesn’t work. I also tried to overwrite hit-test, but that doesn’t work either. I was trying to add description to the buttonells, but they always appear to be nil. Does anyone know whether adding accessibility tags to a cell in a cell is supported in Cocoa at all? Thanks very much! Tina
Hello Tina.
Do I understand you correctly that you have a custom cell in your table view, and your custom cell has subelements (in this case an NSButtonCell?).
Patti's advice is correct if you are using a cell with children in other contexts (such as a custom control). However, in a table view or outline view, Cocoa does not support reporting the children of a cell to accessibility.
Usually the best approach, within the possible implementations is to convey as much of the functionality of the cell as a whole, even though you are not able to report each subelement. In this case, you might use an AXDescription for the main cell that communicates multiple pieces of information. You might also implement the AXPress action on the main cell, and implement it such that when that action is performed on the main cell, that it triggers the action of the the subelement button.
Either here on the list, or off-list if you send a screen shot of what you are trying to make accessible, we can make some suggestions about what might be the best approach taking existing limitations into account.
-James
-------------------------------------------------- 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:
This email sent to email@hidden