Re: Aliases with NDAlias not appearing where I tell them to be.
Re: Aliases with NDAlias not appearing where I tell them to be.
- Subject: Re: Aliases with NDAlias not appearing where I tell them to be.
- From: Kevin Muldoon <email@hidden>
- Date: Wed, 27 Apr 2011 15:26:35 -0400
On Apr 27, 2011, at 3:14 PM, Fritz Anderson wrote:
Also — though probably you're just doing it for the example — I
don't recommend finding standard directories by concatenating
literal strings. Pass the constant NSDesktopDirectory to
NSSearchPathForDirectoriesInDomains().
You mean like so...
NSArray * paths = NSSearchPathForDirectoriesInDomains
(NSDesktopDirectory, NSUserDomainMask, YES);
NSString * desktop_path = [paths objectAtIndex:0];
Yes, that looks much better. Thanks!_______________________________________________
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