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 protected])

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 [email protected]

Reply via email to