+1  A: 

URL is not only for the resource on the internet, there's a file URL. Typically, you generate a file URL in Cocoa as in

NSString* path= some path in the file system ;
NSURL* fileURL=[NSURL fileURLWithPath:path];

Then you can use the fileURL as you want!

Yuji
I'm not really understand.I was trying to change initWithURL:@"http://farm4.static.flickr.com/3246/2957580101_33c799fc09_o.jpg" by this initWithURL:[[NSBundle mainBundle] pathForResource:@"...." ofType:@"..."] but its not finding anything
ludo
`-[NSBundle pathForResource: ofType:]` returns an `NSString`. Didn't you see a compiler warning? You need to further wrap it by `-[NSURL fileURLWithPath:]`.
Yuji
no compiler wrning because as you can see before in my code the URL is define to be a string.
ludo
+1  A: 

Ok I find a solution, it was not complicated I just need to use the bundle path just after initWithURL and smallURL like that:


initWithURL:(@"bundle://image.jpg")
smallURL:(@"bundle://smallimage.jpg")

Of course after I will use a database to display the path so I will put an argument after bundle I think its '%s'

ludo