In article <1188783526.079462.142190@[EMAIL PROTECTED]
>,
zon7 <zon7mail@[EMAIL PROTECTED]
> wrote:
> Hi, I'm a newbie in the objective-c world and I'm finding it a little
> hard.
> I'm trying to list a directory and then opening the images.
> I have everything solved except returning the NSString with the path
> to the url format.
> For example I have this string:
> /Users/zon7/Pictures/2007-08-20 ***ple Javi/S5003130.JPG
> with spaces and everything. How do I convert it again to NSURL format?
> Thanks.
In XCode, on the Help menu, choose the second item, Do***entation. In
the resulting window, type NSURL in the search oval. If you had done
that you would have seen the do***ention for NSURL. In the first
paragraph, it says:
If you are creating NSURL objects using file system paths, you should
use fileURLWithPath:
In XCode, if you had typed: <Command><****ft>-D, you'd have gotten an
"open quickly" dialog box. typing: NSURL.h would have opened the NSURL.h
system header file. That, too, would have shown you: fileURLWithPath:


|