Re: CGImage to NSImage, or PDFPage?
Re: CGImage to NSImage, or PDFPage?
- Subject: Re: CGImage to NSImage, or PDFPage?
- From: Brian Postow <email@hidden>
- Date: Tue, 10 Aug 2010 18:02:56 -0400
On Aug 10, 2010, at 5:57 PM, Quincey Morris wrote:
> 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.
Yeah, that was just me trying to make sure that the alloc was giving me an object...
>
> Assuming that's not the problem here, what source line is producing the "not a TIFF file" error?
>
The error is coming from the Finalize.
>
> _______________________________________________
>
> 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
>
Brian Postow
Senior Software Engineer
Acordex Imaging Systems
_______________________________________________
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