• 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
Saving a file in a new folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Saving a file in a new folder
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: NSString/NSFont/Dingbats and the SnowFlake symbol
  • Next by Date: Re: Saving a file in a new folder
  • Previous by thread: Re: Change duration of a running CAAnimation?
  • Next by thread: Re: Saving a file in a new folder
  • Index(es):
    • Date
    • Thread