On Mon, 4 Apr 2011 22:19:07 -0500, Stephen J. Butler said: >> I need to accept a filename from the user. Given the user supplied >> filename, I form a fully qualified name: >> >> NSString* pathName = [NSHomeDirectory(), >> stringByAppendingPathComponent:@"Documents"]; >> NSString* fullPathName = [pathName > stringByAppendingPathComponent:filename]; > >First, you should be getting the path to the documents folder via >NSSearchPathForDirectoriesInDomains():
Even better is not not use NSStrings/paths at all and use NSURLs instead. In that case you'd use URLF orDirectory:inDomain:appropriateForURL:create:error: instead of NSSearchPathForDirectoriesInDomains(). -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ 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