hueComponent not valid for the NSColor
hueComponent not valid for the NSColor
- Subject: hueComponent not valid for the NSColor
- From: Torsten Curdt <email@hidden>
- Date: Sat, 01 Nov 2014 20:36:19 +0100
I am struggling to understand why this causes an exception
NSColor *base = [NSColor whiteColor];
NSColor *stroke = [NSColor colorWithCalibratedHue:base.hueComponent
saturation:base.saturationComponent
brightness:0.4
alpha:base.alphaComponent];
"-hueComponent not valid for the NSColor NSCalibratedWhiteColorSpace 1 1;
need to first convert colorspace."
While the following colors work OK
- [NSColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0]
- [NSColor redColor]
Can anyone offer some insights?
cheers,
Torsten
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden