Cant figure out images
Cant figure out images
- Subject: Cant figure out images
- From: Etienne Gignac Bouchard <email@hidden>
- Date: Tue, 10 Mar 2009 20:45:59 -0400
- Thread-topic: Cant figure out images
Hi guys.
So I tried NSImage without much success and now I¹m trying CIImage. I have
the following code:
NSURL *testUrl;
testUrl = [NSURL URLWithString:@"/Users/Etienne/Desktop/logo.gif"];
CIImage *imageTest;
if(testUrl == nil)
NSLog(@"TEST NIL !");
else
NSLog(@"TEST : %@", testUrl); // PRINT THE URL
imageTest = [[NSImage alloc] initWithContentsOfURL:testUrl];
if(imageTest == nil)
NSLog(@"Init image with URL failed"); // <---------- I GET THAT
else
NSLog(@"image init ok\n");
So my image is always nil...this seems like pretty simple code to me. What
am I missing. Oh yeah and the file really is on my desktop...
Thank for your help !
Etienne
_______________________________________________
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