Saving a file in a new folder
Saving a file in a new folder
- Subject: Saving a file in a new folder
- From: email@hidden
- Date: Thu, 25 Nov 2010 14:47:28 -0500 (EST)
Hi,
When the user does a "Save As", I want to create a folder with the same name as the file name they chose and put the file in that folder because there are other files associated with the main file being saved.
I'm using [NSData writeToFile] to save and I thought about moving it after it is saved with [NSFileManager movePath] in my documents saveToURL method. Or calling [NSDocument setFileURL] in my documents writeToURL method, but I'm not sure it's OK to change the URL there.
Will either of those ways work or is there a better way to do that?
thanks
Jeff
_______________________________________________
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