[Top][All Lists]

[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


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: 
return nil? Is this some problem with JPEG magic numbers?

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

reply via email to

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