【发布时间】:2015-02-14 22:43:36
【问题描述】:
在 nib 加载时,我在 OS X 10.9 控制台上收到以下警告 (NSWindowController)。
Invalid color System, labelColor (warning given only once)
我正在使用 Xcode 6 和 OS X 10.10 来编译我的代码。这个警告很可能是因为NSColor exposes new system colors in 10.10 for static text and related elements: labelColor, secondaryLabelColor, tertiaryLabelColor, and quaternaryLabelColor。
如何解决这个警告?
【问题讨论】:
-
是在 10.9 下执行应用程序时在日志中显示此警告,还是在 10.9 环境中在 Xcode 中打开项目时显示此警告?
-
当我在 10.9 上执行时
标签: objective-c cocoa xib nstextfield nstextfieldcell