nanochrome nanochrome - 1 year ago 123
Objective-C Question

Creating a NSColor with RGB value

How do I create a NSColor from a RGB value?

Answer Source

Per the NSColor documentation:

NSColor *myColor = [NSColor colorWithCalibratedRed:redValue green:greenValue blue:blueValue alpha:1.0f];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download