Objective-c – Creating a NSColor with RGB value

cocoaobjective crgb

How do I create a NSColor from a RGB value?

Best Answer

Per the NSColor documentation:

NSColor *myColor = [NSColor colorWithCalibratedRed:redValue green:greenValue blue:blueValue alpha:1.0f];