tags:

views:

60

answers:

2

I know Cocoa gives you whiteColor, blackColor, darkGrayColor, but do they also have the colors from in Apple's color panel? With colors like "Snow", "Tungsten", "Steel", "Tin" ? Or should I create those myself?

+1  A: 

You should find the rgb values for those colors and make your own NSColor. Documentation for NSColor from rgb here

jqpubliq
That's what I thought too but in the comment above, Peter proofed us wrong.
Kane
+4  A: 

You want NSColorList. The one named “Crayons” corresponds to the crayon box in the Color Panel.

Peter Hosey
+1 It goes to show that even after years of using Cocoa, I still discover new classes all the time.
Dave DeLong
Thanks Peter. Didn't know that class existed.
Kane