Disabling accessibility for a table column

爱⌒轻易说出口 提交于 2019-12-11 16:33:21

问题


I have a normal NSTableView that displays a list of tracks. I have dedicated a table column to displaying an icon that indicates which track is currently playing.

I'm working on adding fuller VoiceOver support and I don't like how when each row in the table is selected the first thing said is "image". I would like to disable accessibility for that specific table column.

I know I can do this by subclassing either NSTableView and/or NSTableColumn to return YES from accessibilityIsIgnored. Is there a way to do this without subclassing?


回答1:


No. There is no such thing as "setAccessibilityIsIgnored" so you need to use a subclass that answers YES when asked -accessibilityIsIgnored.



来源:https://stackoverflow.com/questions/3730758/disabling-accessibility-for-a-table-column

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!