Weird problem
Weird problem
- Subject: Weird problem
- From: Jeff LaMarche <email@hidden>
- Date: Sun, 14 Oct 2001 22:31:02 -0700
Wonder if anyone might have some thoughts on this. I did this:
thumb = [[NSImage alloc] initWithContentsOfURL: thumbURL];
thumbURL is a valid URL to a JPEG image, however thumb ends up null.
Now, if I do this:
NSData *data;
data = [NSData dataWithContentsOfURL:thumbURL];
thumb = [[NSImage alloc] initWith
Data:data];
It works just dandy. Nothing else changed anywhere else, I just loaded
the image data to an NSData object and used that instead of the original
URL to load the image. Is there something wrong with the way I attempted
to load the image from a URL?