NSString * cPathName;// cPathName is your specified path

  

NSFileManager *fm = [NSFileManager defaultManager];
 [fm createDirectoryAtPath:cPathName withIntermediateDirectories:TRUE 
attributes:nil error:nil]; 

 

with which you can create any folder.

 

 
> Date: Mon, 18 May 2009 16:34:24 +0800
> From: ldl0313...@163.com
> To: cocoa-dev@lists.apple.com
> Subject: How to implement to create a new directory in a specified path 
> and....?
> 
> Hi ,all
> I completed an application about tableview and audio files. Allow you to drag 
> audio files into the tableview .
> It will play the audio file if you double click the tableview's cell.
> Now, I want to implement this result. When I drag and drop a sound file into 
> the tableview, I want
> the App to create a new directory in a specified path and copy the audio file 
> into the directory. 
> In other words, I want to create a library to store my audio file. How to 
> implement it?
> Thank you.
> Bright
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/chrisgardner%40live.com
> 
> This email sent to chrisgard...@live.com

_________________________________________________________________
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to