Re: create a directory (UTF8 string) in cocoa
Re: create a directory (UTF8 string) in cocoa
- Subject: Re: create a directory (UTF8 string) in cocoa
- From: Wayne Packard <email@hidden>
- Date: Wed, 21 May 2008 17:16:35 -0700
NSFileManager would be one way to do it.
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html
wp
On May 21, 2008, at 5:12 PM, Wayne Shao wrote:
A few writeToFile() methods in Cocoa only works if the directory
already
exists.
How do I create a new directory in Cocoa?
e.g, ~/a/b exists and I want to create ~/a/b/c/d/file.txt. So I
need to
something equivalent to mkdir -p ~/a/b/c/d
I could only fine mkdir() in C. Is there anything in Cocoa? I
don't think
mkdir() can handle NSString. I need to include Chinese characters in
my
directory name.
Thanks,
--
Wayne Shao
_______________________________________________
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
_______________________________________________
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