Re: Path to desktop
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