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

<code>

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

        if ([paths count] < 1)
        {
                //failed
                return;
        }
        
        NSString* path = [paths objectAtIndex:0];

</code>

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?



cheers
thanks for your help

mathew
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to