NSHomeDirectory() vs. -stringByExpandingTildeInPath
NSHomeDirectory() vs. -stringByExpandingTildeInPath
- Subject: NSHomeDirectory() vs. -stringByExpandingTildeInPath
- From: Daniel DeCovnick <email@hidden>
- Date: Mon, 28 Mar 2005 02:15:00 -0500
Mostly out of curiosity, which is better (ie, faster, more portable,
cheaper) to use for creating a NSString for a file path somewhere in
the current user's home directory, [NSHomeDirectory()
stringByAppendingPathComponent:@"path/to/file.ext"]; or
[@"~/path/to/file.ext" stringByExpandingTildeInPath];? And if they're
the same for that case, are there cases in which it's better to use one
than the other? Thanks.
-Daniel DeCovnick
danhd123 at mac dot com
Softyards Software
http://www.softyards.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden