Re: NSColor may not respond to colorWithCalibratedRed

2008-12-27 Thread Steve Christensen
That's because you're trying to call a class method as an instance method. It's defined as: + (NSColor *)colorWithCalibratedRed:(float)red green:(float)green blue:(float)blue alpha:(float)alpha; which means you'd use it (in your example) like this: [[NSColor colorWithCalibratedRed:5.0 gree

Re: NSColor may not respond to colorWithCalibratedRed

2008-12-27 Thread Ross Carter
try darkGreenColor = [NSColor colorWithCalibratedRed:5.0 green:150.0 blue:15.0 alpha:0.5]; ... and change your arguments so they are between 0.0 and 1.0. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: NSColor may not respond to colorWithCalibratedRed

2008-12-27 Thread jonat...@mugginsoft.com
On 27 Dec 2008, at 14:54, Joseph Ayers wrote: I'm trying to create a dark green color. In NSColor * darkGreenColor; darkGreenColor = [[NSColor alloc] init]; [[darkGreenColor colorWithCalibratedRed:5.0 green:150.0 blue:15.0 alpha:0.5] set]; I get a compile warning 'NSColor'

NSColor may not respond to colorWithCalibratedRed

2008-12-27 Thread Joseph Ayers
I'm trying to create a dark green color. In NSColor * darkGreenColor; darkGreenColor = [[NSColor alloc] init]; [[darkGreenColor colorWithCalibratedRed:5.0 green:150.0 blue:15.0 alpha:0.5] set]; I get a compile warning 'NSColor' may not respond to 'colorWithCalibratedColorRed.