在源列表NSTableView中禁用NSVisualEffectView [英] Disable NSVisualEffectView in Source List NSTableView

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

问题描述

我有一个较旧的应用程序,该应用程序基于具有源列表突出显示的基于NSCell的NSTableView,具有特定的外观.不幸的是,在优胜美地上,这在所选单元格下面增加了NSVisualEffectView活力,从而以不愉快的方式破坏了外观.

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).

您是否知道是否有办法在10.10上选择退出此行为?

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

推荐答案

您需要将表视图的外观从NSAppearanceNameVibrantLight更改为NSAppearanceNameAqua.如果您以OS X 10.8或更早版本为目标,请尝试通过直接编辑XIB文件来设置外观:

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" ...>

还要确保在IB中将表格视图的背景色设置为Default.

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

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

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