On Thu, Aug 13, 2009 at 1:29 PM, Daniel Furrer<daniel.fur...@gmail.com> wrote:
> On Thu, Aug 13, 2009 at 6:51 PM, Sean McBride <s...@rogue-research.com>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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to