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

Re: CGColorSpaceCreateWithName on iOS


  • Subject: Re: CGColorSpaceCreateWithName on iOS
  • From: Steve Christensen <email@hidden>
  • Date: Thu, 12 Aug 2010 22:27:47 -0700

Apparently you should use CGColorSpaceCreateDeviceRGB(). In the documentation for that function, it says:

"In Mac OS X v10.4 and later, this color space is no longer device-dependent and is replaced by the generic counterpart—kCGColorSpaceGenericRGB—described in “Color Space Names”. If you use this function in Mac OS X v10.4 and later, colors are mapped to the generic color spaces. If you want to bypass color matching, use the color space of the destination context."


On Aug 12, 2010, at 6:04 PM, Matt Neuburg wrote:

> 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?

_______________________________________________

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: 
 >CGColorSpaceCreateWithName on iOS (From: Matt Neuburg <email@hidden>)

  • Prev by Date: CGColorSpaceCreateWithName on iOS
  • Next by Date: How to assure NSTask termination when parent dies
  • Previous by thread: CGColorSpaceCreateWithName on iOS
  • Next by thread: How to assure NSTask termination when parent dies
  • Index(es):
    • Date
    • Thread