Talk About Network

Google





Mac > Mac Programmer > Re: NSString to...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 963 of 1043
Post > Topic >>

Re: NSString to NSURL

by David Phillip Oster <oster@[EMAIL PROTECTED] > Sep 3, 2007 at 04:56 AM

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:
 




 2 Posts in Topic:
NSString to NSURL
zon7 <zon7mail@[EMAIL   2007-09-02 18:38:46 
Re: NSString to NSURL
David Phillip Oster <o  2007-09-03 04:56:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 19:06:53 PST 2009.