Disable NSVisualEffectView in Source List NSTableView

一笑奈何 提交于 2019-12-01 05:01:31

问题


I have an older application that has a specific appearance based on NSCell-based NSTableView having Source List highlighting. Unfortunately, on Yosemite this adds the NSVisualEffectView vibrancy under the selected cell which breaks the appearance in an unpleasant way.

I can't find a way to opt-out of this behaviour, unfortunately. Setting Regular highlighting breaks the appearance in another way (grey selection instead of blue).

Any idea if there is a way to opt-out of this behaviour on 10.10?


回答1:


You need to change table view appearance from NSAppearanceNameVibrantLight to NSAppearanceNameAqua. If you're targeting OS X 10.8 or earlier try setting the appearance by editing XIB file directly:

<tableView appearanceType="aqua" ...>

Also make sure that table view background color is set to Default in IB.



来源:https://stackoverflow.com/questions/27352869/disable-nsvisualeffectview-in-source-list-nstableview

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