FROM : Christopher Holland
DATE : Wed Jan 29 04:19:03 2003
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Wed Jan 29 04:19:03 2003
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Ian G. Gillespie | Jan 28, 03:52 | |
| Matt Gemmell | Jan 28, 04:26 | |
| Joseph Jones | Jan 28, 04:42 | |
| Christopher Hollan… | Jan 28, 10:33 | |
| Brock Brandenberg | Jan 28, 15:27 | |
| Ian G. Gillespie | Jan 28, 18:11 | |
| Joseph Jones | Jan 28, 19:47 | |
| Erik M. Buck | Jan 28, 20:04 | |
| Erik M. Buck | Jan 28, 20:51 | |
| Ian G. Gillespie | Jan 28, 21:14 | |
| John C. Randolph | Jan 28, 21:58 | |
| Ian G. Gillespie | Jan 28, 23:17 | |
| Matt Gemmell | Jan 29, 03:01 | |
| Christopher Hollan… | Jan 29, 04:19 |






Cocoa mail archive

