Re: building a file path

2009-01-24 Thread Dave DeLong
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 "/myfold

building a file path

2009-01-24 Thread mathew
hello, i'm writing some code that saves a file on the iphone, there's no user intervention / file dialog involved. so once i've found the documents directory NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); if ([paths count] < 1