• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOutlineView floating group row question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView floating group row question


  • Subject: Re: NSOutlineView floating group row question
  • From: Bill Cheeseman <email@hidden>
  • Date: Sat, 14 Jun 2014 17:17:30 -0400

On Jun 14, 2014, at 5:02 PM, Lee Ann Rucker <email@hidden> wrote:

> 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.


I'm not sure I follow you. I haven't done anything to set or change the color of the group (header) rows' text in my source list, and it appears correct (49% gray sounds like an accurate description of what I'm seeing).

The special color I referred to in my original post ("_sourceListBackgroundColor") is an Apple named system color which is the color to use as the background color of a source list if the sourcelist, according to the HIG, serves as the primary vehicle for the user to navigate or filter an application's data. It's a private variable, but if you Google it you'll see that it is widely known and used. I think Apple should include it in the public declaration of named system colors, of which there are a few dozen. All of these system colors automatically change when a window activates and deactivates. Many Cocoa framework NSColor method parameters can't take these system named colors. I tried to use "_sourceListBackgroundColor" in my NSBox view early on, as a simple solution to one of my issues, but -[NSBox fillColor] won't accept it.

--

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


  • Follow-Ups:
    • Re: NSOutlineView floating group row question
      • From: Lee Ann Rucker <email@hidden>
References: 
 >NSOutlineView floating group row question (From: Bill Cheeseman <email@hidden>)
 >Re: NSOutlineView floating group row question (From: Kyle Sluder <email@hidden>)
 >Re: NSOutlineView floating group row question (From: Bill Cheeseman <email@hidden>)
 >Re: NSOutlineView floating group row question (From: Lee Ann Rucker <email@hidden>)

  • Prev by Date: Re: NSOutlineView floating group row question
  • Next by Date: title bar hit test?
  • Previous by thread: Re: NSOutlineView floating group row question
  • Next by thread: Re: NSOutlineView floating group row question
  • Index(es):
    • Date
    • Thread