Re: CGColorSpaceCreateWithName on iOS

2010-08-12 Thread Steve Christensen
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

CGColorSpaceCreateWithName on iOS

2010-08-12 Thread Matt Neuburg
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 ye