禁用表列的辅助功能 [英] Disabling accessibility for a table column

查看:192
本文介绍了禁用表列的辅助功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正常的NSTableView显示轨道列表。我已经将一个表列专用于显示一个图标,指示当前正在播放哪个曲目。

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.

我正在添加更全面的VoiceOver支持,我不喜欢如何表中的每一行都被选中的第一个东西是image。我想禁用该特定表列的辅助功能。

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.

我知道我可以通过子类化NSTableView和/或NSTableColumn来返回YES从accessibilityIsIgnored。有没有办法做这个没有子类化?

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?

推荐答案

否。没有setAccessibilityIsIgnored这样的东西,所以你需要使用一个子类,当被询问-accessibilityIsIgnored时回答YES。

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

这篇关于禁用表列的辅助功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆