Re: Drawing gradients in views
Re: Drawing gradients in views
- Subject: Re: Drawing gradients in views
- From: Christopher Holland <email@hidden>
- Date: Tue, 28 Jan 2003 21:19:03 -0600
On Tuesday, January 28, 2003, at 04:17 PM, Ian G. Gillespie wrote:
>
Hi,
>
>
I tried using the methods sent and I get this error:
>
>
-redComponent not defined for the NSColor NSCalibratedWhiteColorSpace
>
1 1; need to first convert colorspace.
>
>
How do I convert colorspace?
There is a method in NSColor to do just that. Check it out.
<
file:///System/Library/Frameworks/AppKit.framework/Versions/C/
Resources/English.lproj/Documentation/Reference/ObjC_classic/Classes/
NSColor.html >
---------------------------
colorUsingColorSpaceName:
- (NSColor *) colorUsingColorSpaceName: (NSString *) colorSpace
Creates and returns an NSColor whose color is the same as the
receiver's, except that the new NSColor is in the color space named
colorSpace . If colorSpace is nil , the most appropriate color space is
used.
Returns nil if the specified conversion cannot be done.
See Also: - colorSpaceName
_______________________________________________
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.