• 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
CGColorSpaceCreateWithName on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGColorSpaceCreateWithName on iOS


  • Subject: CGColorSpaceCreateWithName on iOS
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 12 Aug 2010 18:04:21 -0700
  • Thread-topic: CGColorSpaceCreateWithName on iOS

I got this line straight out of an example in the docs:

CGColorSpaceRef colorSpace =
  CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);

But the compiler won't let me say it ("error: 'kCGColorSpaceGenericRGB' is
unavailable"). And indeed, I do see that the header calls this __IPHONE_NA,
and yes, I'm on iOS. But the docs also say CGColorSpaceCreateWithName *is*
available on iOS. So what names *am* I allowed to use? Or is the point that
on iOS I just create a vanilla color space and assign my own name?

m.

--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Exploring & Customizing Snow Leopard
http://tinyurl.com/kufyy8
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com



_______________________________________________

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

  • Follow-Ups:
    • Re: CGColorSpaceCreateWithName on iOS
      • From: Steve Christensen <email@hidden>
  • Prev by Date: Re: who stole my UIView?
  • Next by Date: Re: CGColorSpaceCreateWithName on iOS
  • Previous by thread: [iPhone] MapKit link irregularity
  • Next by thread: Re: CGColorSpaceCreateWithName on iOS
  • Index(es):
    • Date
    • Thread