Actually, the "default" color you get from IB may not be the "proper" color: 
rdar://16040037

View-based SourceList header cell default text color should not be a custom

It's 49% gray, instead of a named system color. One effect of that is that it's 
an unreadable gray on blue when selected. It appears that the cell is treating 
that 49% gray as a custom color to use in all situations, rather than the color 
for the unselected state.

Setting it to any named color, like controlTextColor or white, makes it behave 
itself.

----- Original Message -----
From: "Bill Cheeseman" <wjcheese...@gmail.com>
To: "Cocoa-Dev Cocoa-Dev Mail" <cocoa-dev@lists.apple.com>
Sent: Saturday, June 14, 2014 12:07:24 PM
Subject: Re: NSOutlineView floating group row question


On Jun 14, 2014, at 2:52 PM, Kyle Sluder <k...@ksluder.com> wrote:

> Do you override -viewWillDraw anywhere? That is the method NSTableView uses 
> to push down style attributes to its row views and their cells, so don’t 
> forget to call super.
> 
> Also, what color have you assigned to your text fields? If it’s anything 
> other than +controlTextColor, NSTableView might skip updating the colors.


I do not override -viewWillDraw. Neither do the two sample projects I 
mentioned, so it doesn't seem like that could be the issue.

I have not assigned any color to the text fields, so its the proper default 
color.

-- 

Bill Cheeseman - b...@cheeseman.name

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://urldefense.proofpoint.com/v1/url?u=https://lists.apple.com/mailman/options/cocoa-dev/lrucker%2540vmware.com&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=yJFJhaNnTZDfFSSz1U9TSNMmxGyib3KjZGuKfIhHLxA%3D%0A&m=IHcwFyL9gCIqPxQwCLQ1qrZLzk2JdskVwxm%2BqOJAqbM%3D%0A&s=56a56b3f09589288e8391a4546605541eba6f3019daec0450db75ddf97590eff

This email sent to lruc...@vmware.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to