Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid color System, labelColor (warning given only once)

I am getting following warning on OS X 10.9 console at the time of nib load(NSWindowController).

Invalid color System, labelColor (warning given only once)

I am using Xcode 6 and OS X 10.10 to compile my code. Most probably this warning is coming because of NSColor exposes new system colors in 10.10 for static text and related elements: labelColor, secondaryLabelColor, tertiaryLabelColor, and quaternaryLabelColor.

How to fix this warning?

like image 685
Parag Bafna Avatar asked Dec 16 '14 15:12

Parag Bafna


1 Answers

Change your textfield's color in your xib file from:

<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>

to:

<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>

Since "labelColor" is not a formal color name in OSX 10.9.

like image 119
Nili Avatar answered Nov 07 '22 21:11

Nili