Re: NSOutlineView floating group row question
Re: NSOutlineView floating group row question
- Subject: Re: NSOutlineView floating group row question
- From: Lee Ann Rucker <email@hidden>
- Date: Sat, 14 Jun 2014 14:02:05 -0700 (PDT)
- Thread-topic: NSOutlineView floating group row question
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" <email@hidden>
To: "Cocoa-Dev Cocoa-Dev Mail" <email@hidden>
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 <email@hidden> 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 - email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden