Re: CGImage to NSImage, or PDFPage?
Re: CGImage to NSImage, or PDFPage?
- Subject: Re: CGImage to NSImage, or PDFPage?
- From: Quincey Morris <email@hidden>
- Date: Tue, 10 Aug 2010 14:57:42 -0700
On Aug 10, 2010, at 14:45, Brian Postow wrote:
> NSImage* img = [NSImage alloc];
> [img initWithData: imgData];
Well, you definitely don't want to do this. There's no guarantee that the initialized object returned by 'initWithData:' is img, so you could easily be returning an uninitialized object.
Assuming that's not the problem here, what source line is producing the "not a TIFF file" error?
_______________________________________________
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