• 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
Re: Saving an NSDocument safely
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving an NSDocument safely


  • Subject: Re: Saving an NSDocument safely
  • From: Alastair Houghton <email@hidden>
  • Date: Fri, 11 Jan 2008 14:57:14 +0000

On 11 Jan 2008, at 10:47, Thomas Thiriez wrote:

I have an NSDocument, and in order to save it, I override the method:
- saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo :


In order not to lose the original file until I am sure saving was
completed properly, I save in a temporary file, and when this is done,
I delete the original file, and rename my temporary file.

Aren't you re-inventing the wheel here? Doesn't the framework already do this?


Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

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 an NSDocument safely
      • From: "Adam R. Maxwell" <email@hidden>
References: 
 >Saving an NSDocument safely (From: Thomas Thiriez <email@hidden>)

  • Prev by Date: Re: How to know a file is busy(read/write)?
  • Next by Date: Re: User Permissin.
  • Previous by thread: Saving an NSDocument safely
  • Next by thread: Re: Saving an NSDocument safely
  • Index(es):
    • Date
    • Thread