NSColor and NSNamedColorSpace
NSColor and NSNamedColorSpace
- Subject: NSColor and NSNamedColorSpace
- From: Nathan Wertman <email@hidden>
- Date: Fri, 7 Nov 2003 20:15:24 -0800
Either I am going crazy or I am a complete idiot. The following 2
lines of code should return a NSColor object that is in the
NSNamedColorSpace color space correct?
NSColor * redColor = [[NSColorList colorListNamed:@"Apple"]
colorWithKey:@"Red"];
NSColor * myColor = [redColor
colorUsingColorSpaceName:@"NSNamedColorSpace"];
I get a nil value for myColor. I am assuming that there is a
corresponding 'Red' color in the NSNamedColorSpace. When I change the
redColor object to actually obtain a white color value I am still
presented with nil for myColor, and there is only one shade of white.
I would like an NSColor object that is in the NSNamedColorSpace (as
opposed to one of the RGB spaces), but I cannot seem to find ANY way to
create on. I am running Panther currently.
What am I doing wrong?
Nate
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.