Re: NSString, stringByAppendingPathComponent, and Canonicalization

2011-04-07 Thread Sean McBride
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 = [

Re: NSString, stringByAppendingPathComponent, and Canonicalization

2011-04-05 Thread David Duncan
On Apr 4, 2011, at 8:08 PM, Jeffrey Walton wrote: > Hi All, > > I need to accept a filename from the user. Given the nature of the file system on iOS, do you really need to accept a file name from the user, or just a document title? Unless your supporting users syncing documents via some meth

Re: NSString, stringByAppendingPathComponent, and Canonicalization

2011-04-04 Thread Ken Thomases
On Apr 4, 2011, at 10:08 PM, Jeffrey Walton wrote: > 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 str

Re: NSString, stringByAppendingPathComponent, and Canonicalization

2011-04-04 Thread Stephen J. Butler
On Mon, Apr 4, 2011 at 10:08 PM, Jeffrey Walton wrote: > 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  

NSString, stringByAppendingPathComponent, and Canonicalization

2011-04-04 Thread Jeffrey Walton
Hi All, 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]; How do I canoni