• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CGFloat in 10.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CGFloat in 10.4 (From: "bensyverson" <email@hidden>)

  • Prev by Date: Re: Best Way To Lookup From a Huge Table
  • Next by Date: Re: CGFloat in 10.4
  • Previous by thread: CGFloat in 10.4
  • Next by thread: Re: CGFloat in 10.4
  • Index(es):
    • Date
    • Thread