Re: custom list view
Re: custom list view
- Subject: Re: custom list view
- From: Dave Hayden <email@hidden>
- Date: Tue, 25 Jan 2011 17:13:51 -0800
After adding what seems like hundreds of attributes, I've got my layer-based table view somewhat accessible to VoiceOver. I can navigate into the list and between items and VO reads out the text. It doesn't see selection changes, though, even though I'm calling NSAccessibilityPostNotification() with NSAccessibilitySelectedRowsChangedNotification.
Also, Accessibility Inspector doesn't show me the contents of my scroll area as I mouse over them. If I lock to the scroll view and use the Go To menu to drill down, I can see what's in my table, and the structure is the same as what I see in Mail's message list. The only accessibility method getting called on my table element when I mouse over with Accessibility Inspector on is it getting the AXParent. (I'm returning the NSView for the scroll area element, and an NSObject for the table element, so it seems like Accessibility Inspector is looking at the NSView hierarchy for rollovers, not the accessibility hierarchy.)
When I run with "-NSAccessibilityDebugLogLevel 1" I see an NSAccessibilityException:
Attempt to observe "AXSelectedCellsChanged" on non-observable element
This old thread:
http://lists.apple.com/archives/accessibility-dev/2006/Nov/msg00019.html
says that this observation stuff isn't going to work (or wouldn't in 2006) for anything that's not an NSView or NSControl. Is this still the case? Is this the thing I'd need to let VO be able to follow my table selection? (I see that NSAccessibilitySelectedCellsChangedNotification is 10.6-only, so maybe not--surely VoiceOver could track table selection in 10.5..)
Finally, how do I go the other way, changing the selection to the row selected in VoiceOver? I'm not getting the AXFocused attribute set on any of my UI elements, and I gather that the NSAccessibilityFocusedUIElementChangedNotification notification doesn't go through NSNotificationCenter.
I should also ask: Is any of this documented anywhere? So far I've found next to nothing, and the accessibility sample code is pretty minimal.
Thanks!
-Dave
_______________________________________________
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