Re: Write with NSFileWrapper vs. copy with NSFileManager
Re: Write with NSFileWrapper vs. copy with NSFileManager
- Subject: Re: Write with NSFileWrapper vs. copy with NSFileManager
- From: Mike Abdullah <email@hidden>
- Date: Wed, 26 Mar 2014 10:25:30 +0000
On 26 Mar 2014, at 10:19, Colas B <email@hidden> wrote:
>
> What is the difference between writing a hard link and just ignore this particular file that has not changed ? If the file is already there, where the hard link will be created?
>
> Envoyé depuis Yahoo Mail pour iPad
NSFileWrapper doesn’t support incremental writing of files/packages. Instead what’s likely happening in your situation:
1. NSDocument asks you to write the document to a temporary folder
2. You do so using NSFileWrapper
3. NSDocument then atomically replaces the original document with the new version from the temp folder
So the hard links are created inside the temporary version of the document.
_______________________________________________
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