• 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
create a directory (UTF8 string) in cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

create a directory (UTF8 string) in cocoa


  • Subject: create a directory (UTF8 string) in cocoa
  • From: "Wayne Shao" <email@hidden>
  • Date: Wed, 21 May 2008 17:12:28 -0700

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

  • Follow-Ups:
    • Re: create a directory (UTF8 string) in cocoa
      • From: "Michael Ash" <email@hidden>
    • Re: create a directory (UTF8 string) in cocoa
      • From: Citizen <email@hidden>
    • Re: create a directory (UTF8 string) in cocoa
      • From: Wayne Packard <email@hidden>
  • Prev by Date: fundamental question: how do I call controller methods from other classes?
  • Next by Date: Re: create a directory (UTF8 string) in cocoa
  • Previous by thread: Re: fundamental question: how do I call controller methods from other classes?
  • Next by thread: Re: create a directory (UTF8 string) in cocoa
  • Index(es):
    • Date
    • Thread