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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/kperry%40apple.com > > This email sent to kpe...@apple.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com