Re: building a file path
Re: building a file path
- Subject: Re: building a file path
- From: Dave DeLong <email@hidden>
- Date: Sat, 24 Jan 2009 22:20:21 -0700
You should use the path methods on NSString:
NSString * filePath = [[path
stringByAppendingPathComponent:@"myfolder"]
stringByAppendingPathComponent:@"myfile.xml"];
Cheers,
Dave
On 23 Jan, 2009, at 11:00 PM, mathew wrote:
should I just manually build a file path string by adding "/myfolder/
myfile.xml' to 'path'
or is there a correct way to do it that doesn't involve hard coding
the slashes into the filepath?
_______________________________________________
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