• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSHomeDirectory() vs. -stringByExpandingTildeInPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSHomeDirectory() vs. -stringByExpandingTildeInPath
      • From: j o a r <email@hidden>
  • Prev by Date: Re: [pool release] causes error?
  • Next by Date: Re: NSHomeDirectory() vs. -stringByExpandingTildeInPath
  • Previous by thread: Re: shouldn't polymorphism work here?
  • Next by thread: Re: NSHomeDirectory() vs. -stringByExpandingTildeInPath
  • Index(es):
    • Date
    • Thread