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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/brian.postow%40acordex.com
> 
> This email sent to brian.pos...@acordex.com
> 

Brian Postow
Senior Software Engineer
Acordex Imaging Systems

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to