I read the iPhone Developer Cookbook by Erica Sadun and wonder.
She says in a book that there is a way to find a user document directory with code:
[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];
but this seems a bit fragile and incompatible with the regular Mac way of doing it:
NSSearchPathForDirectoriesInDomains(NSDocumentsDirectory, NSUserDomainMask, YES);
Are there any special reasons for using one over the other?
ios objective-c iphone cocoa-touch
bwinton Nov 07 '08 at 16:02 2008-11-07 16:02
source share