On Mar 18, 2008, at 5:11 PM, bensyverson wrote:

I have a few CIColor's that I need to query for their color components, but I'm running into errors. Here's what I'm trying to do:

CGFloat *color;
color = [ciColor components];

Xcode complains, saying CGFloat is undeclared. I think I'm including all the appropriate headers... What gives? How can I get at the components of my CIColors?


The Mac OS X 10.4 SDK doesn't have a declaration for CGFloat. If you need to target that SDK, then you should use the float data type instead (which is what CGFloat is typedef'd to when compiling for 32- bit anyway). If you can use the 10.5 SDK, then you will find that CGFloat is defined, and you can use it compatibly when running on 10.4 or 10.5.
--
David Duncan
Apple DTS Animation and Printing
[EMAIL PROTECTED]



_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to