Re: Trouble with NSColor
Re: Trouble with NSColor
- Subject: Re: Trouble with NSColor
- From: Sherm Pendley <email@hidden>
- Date: Thu, 13 Aug 2009 13:38:16 -0400
On Thu, Aug 13, 2009 at 1:29 PM, Daniel Furrer<email@hidden> wrote:
> On Thu, Aug 13, 2009 at 6:51 PM, Sean McBride <email@hidden>wrote:
>
>> Did you read the docs for 'redComponent'?
>>
>> "This method works only with objects representing colors in the
>> NSCalibratedRGBColorSpace or NSDeviceRGBColorSpace color space"
>>
>> Use colorUsingColorSpaceName:NSCalibratedRGBColorSpace to convert.
>
> I believe that's what I'm doing in my first line of code, no?
Not quite - in your code, you're using NSCalibratedRGBColorSpace as a
literal string value, not as the name of a global variable.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
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