• 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
Re: Path to desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path to desktop


  • Subject: Re: Path to desktop
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 9 Jul 2007 13:03:58 -0400
  • Organization: Rogue Research

On 7/9/07 11:50 AM, Jim Turner said:

>NSString *path = [NSHomeDirectory() s
>tringByAppendingPathComponent:@"Desktop"];

I don't recommend that.  It needlessly assumes the Desktop is in the
home folder, and it hardcodes the string "Desktop".  What if it moves or
changes names one day?  There is no need to assume that when we have
NSDesktopDirectory.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Path to desktop (From: Micha Fuhrmann <email@hidden>)
 >Re: Path to desktop (From: "Jim Turner" <email@hidden>)

  • Prev by Date: Re: Path to desktop
  • Next by Date: Re: How to keep creation/modification date of a (Core Data) object?
  • Previous by thread: Re: Path to desktop
  • Next by thread: Re: Path to desktop
  • Index(es):
    • Date
    • Thread