如何在NSPopOver中更改NSTextField背景颜色 [英] How to change NSTextField background color in NSPopOver

查看:479
本文介绍了如何在NSPopOver中更改NSTextField背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

>

Mac OSX 10.10 Xcode 6.1

Mac OSX 10.10 Xcode 6.1

我在NSPopOver中创建了一个tableview。
我尝试更改textfield的背景颜色。为什么?没有效果。
tableview的高亮设置为regular。

I created a tableview in NSPopOver. I try to change textfield's background color. Why? no effect. The tableview's highlight set to "regular". which way can let me change textfields background color to white?

推荐答案

有一个已知的错误,文本字段和活力混合添加在优胜美地。已知会影响popovers。

There's a known bug with text fields and the "vibrancy" blending added in Yosemite. It's known to affect popovers.

解决方法是将表视图的外观属性设置为<$ c

The workaround is to set the appearance property of the table view to NSAppearanceNameAqua.

这是由一位苹果工程师在他们的论坛中确认

这篇关于如何在NSPopOver中更改NSTextField背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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