Previewing NSColors

Many of you probably know about this already but for those who don’t, here’s a nifty little tidbit for you developers.

NSColor has all those methods to retrieve system colors. Wouldn’t it be nice to see what they actually are? Bring up a color panel (doesn’t matter which app), select the color list icon (it should be the 3rd icon) up top. In the “List” pop-up, select “Developer”.

color-panel.png

What you get is a list of colors with NSColor’s method names. In addition, it seems to update if you change your color scheme in System Preferences.

Not that this clears up all questions. Still not sure where those purple “knob” colors appear.

Category: Cocoa, OS X, Programming 4 comments »

4 Responses to “Previewing NSColors”

  1. Andy Kim

    Nice tip!

    I still wish that the cocoa documentation had a swatch next to methods such as +[NSColor controlShadowColor] and family.

  2. Jon Hendry

    BTW, I believe the old licensed Pantone color lists from NeXTSTEP/OpenStep still work.

  3. D

    Knob colors are found in some Pro apps, like Motion. They are the virtually the only colors the same between the Developer pallete and the AquaPro pallete (which may not be installed if you don’t have any of Apple’s pro apps.)

  4. Michael Robinson

    Great tip, helped me identify the selected row colour in Finder. Thanks!


Leave a Reply



Back to top