My UI designer gives me great UI mockups created in Photoshop. I want to exactly match the colors in the mockup, but every time I create a color using the -colorWithCalibratedRed:green:blue:alpha:
method of NSColor, the colors do not match.
I have tried sampling the colors from the Photoshop mockup using the Pixie app in /Developer/Applications/Graphics Tools/ and it copies an NSColor definition to the clipboard, but these colors are not correct when I build and run the app.
If I use the values that the Photoshop color picker provides, they are not correct either.
I suspect this must be something to do with the fact that I'm sampling a calibrated color from the screen and so the values are incorrect, but I am not sure how to work around this.
If I use -colorWithDeviceRed:green:blue:alpha:
and pass through the values it looks correct, but then the color is not consistent on other systems.
Is there a way to do this reliably?