Re: Cocoa won't draw CMYK jpeg
Re: Cocoa won't draw CMYK jpeg
- Subject: Re: Cocoa won't draw CMYK jpeg
- From: Robert Clair <email@hidden>
- Date: Thu, 13 Sep 2007 09:39:10 -0400
A CGColorSpace may not have a profile to give you. For example,
Device color spaces, or those created with
CGColorSpaceCreateCalibratedGray don't have explicit ICC profiles
for you to grab.
so ??? :-)
PropertyFooRef getPropertyFoo()
{
if ( propertyFoo relevant to this instance )
{
return pointerToPropertyFoo;
}
else
{
return NULL;
}
}
The fact that some instances may not have what you are after isn't an
excuse to not let you have that property when it does exist.
Especially if you *really* want it. Responsible adults should be able
to check the return value of a function.
...Bob
_______________________________________________
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