code_junkie

How do I create NSColor instances that exactly match those in a Photoshop UI mockup?

Nov 13th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. NSColorSpace *sRGB = [NSColorSpace sRGBColorSpace];
  2.  
  3. CGFloat components[3] = { 1.0, 1.0, 1.0 };
  4. NSColor *sRGBRed = [NSColor colorWithColorSpace:sRGB components:&components count:3];
  5.  
  6. NSColor *calibratedColor = [sRGBRed colorUsingColorSpaceName:NSCalibratedRGBColorSpace];
Add Comment
Please, Sign In to add comment