There are several convenience class methods for creating a NSColor. However, I can't seem to identify when to use the different class methods below:
colorWithSRGBRed:green:blue:alpha:
vs colorWithDeviceRed:green:blue:alpha:
vs colorWithCalibratedRed:green:blue:alpha:
tl;dr Use the calibrated colour space.
Rather than regurgitate the documentation - the answer is in the Color Programming Topics
Also the Color Space Overview
Edited to add
sRGB is one of the named Color Spaces.
Finally - and this is the last image from the documentation, and I hope it answers your question - if you want to use a color space, use the calibrated one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With