NSTextField ignores background color property since OS X 10.9.2

Originator:kastansn
Number:rdar://16259679 Date Originated:03/07/14
Status:Open Resolved:
Product:OS X Product Version:10.9.2
Classification: Reproducible:Always
 
Summary:
The background color of a NSTextField label can be set via Interface Builder to other values than "Control Color". Since OS X 10.9.2, this setting isn't respected anymore and all labels have a clear background color. This only applies when the parent view of the label is Core Animation layer-enabled.

Steps to Reproduce:
1. Drag a new label onto a view in Interface Builder (IB).
2. Set the background color of the label to something other than the default "Control Color", for example to "Text Color"
3. Switch the label's border type to another border type and back again to reflect the background color changes in IB (another bug?). Note that the color has been changed correctly in IB.
4. Set the view to be layer-backed by checking its "Core Animation Layer" checkbox on the "View Effects" inspector tab
5. Build and Run

Expected Results:
The label should now have a black ("Text Color") background.

Actual Results:
The label has a transparent background, i.e. it isn't affected by the changed background color property.

Version:
OS X 10.9.2

Configuration:
This problem occurred with OS X 10.9.2, it used to work from at least OS X 10.8. until 10.9.1

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!