Re: Space-efficient saving for Versions?
Re: Space-efficient saving for Versions?
- Subject: Re: Space-efficient saving for Versions?
- From: Kevin Perry <email@hidden>
- Date: Thu, 28 Jul 2011 09:33:17 -0700
The Versions store will do this automatically. It can detect when blocks of a file have been duplicated and avoid storing those blocks on disk.
On Jul 28, 2011, at 12:37 AM, Daniel Vollmer wrote:
> Salutations,
>
> in my custom document package I'm always including a large-ish chunk of data that does not get modified as I change the document itself. Currently, I'm keeping this around as NSData-object and write it out when being asked by NSDocument to return my fileWrapper as one sub-file of the directory package.
> Can I do anything to make it more obvious to the Versions / autosave-mechanism that this file in the package is always the same? Or will it compare the files anyway and notice it's identical to the one used in the previous revision?
>
> Thanks,
> Daniel._______________________________________________
>
> 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
_______________________________________________
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