nanochrome nanochrome - 3 months ago 24
Objective-C Question

Creating a NSColor with RGB value

How do I create a NSColor from a RGB value?

Answer

Per the NSColor documentation:

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