Re: CGFloat in 10.4
Re: CGFloat in 10.4
- Subject: Re: CGFloat in 10.4
- From: David Duncan <email@hidden>
- Date: Tue, 18 Mar 2008 17:28:30 -0700
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@hidden
_______________________________________________
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