discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImage initWithData: and jpegs


From: Björn Giesler
Subject: NSImage initWithData: and jpegs
Date: Wed, 08 Oct 2003 14:13:32 +0100

Hi,

another one... I haven't quite grokked the backend/frontend weaving of images, 
so maybe someone who knows better can tell me this: Why, if I have a jpeg file 
called "pic.jpg", does
        [[NSImage alloc] initWithContentsOfFile: @"pic.jpg"]
return a valid NSImage, but
        [[NSImage alloc] initWithData: [NSData dataWithContentsOfFile: 
@"pic.jpg"]]
return nil? Is this some problem with JPEG magic numbers?

Regards,
Björn (using gnustep-back as a backend)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]