Re: Path for writeToFile
Re: Path for writeToFile
- Subject: Re: Path for writeToFile
- From: Michael Ash <email@hidden>
- Date: Mon, 2 Mar 2009 23:58:05 -0500
On Mon, Mar 2, 2009 at 11:36 PM, Pierce Freeman
<email@hidden> wrote:
> Hi everyone:
>
> I am running into a bit of a problem when trying to use writeToFile with
> NSDictionary. My problem is that I want to be able to get a file on the
> Desktop but I can't find a way to do that without knowing the directory
> structure of the user. If anyone could point me in the right direction, it
> would be great.
Looking up the path to a standard location without hardcoding the
directory structure is just the sort of thing that the
NSSearchPathForDirectoriesInDomains() is for.
Mike
_______________________________________________
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