> On Jun 16, 2016, at 3:46 PM, Rick Mann <[email protected]> wrote:
> 
> My complex app generates a lot of intermediary data that's cached to speed up 
> operations. Would it be reasonable to store this inside the document package? 
> The idea being that that way, the entire set of data can be moved around 
> easily, without requiring the intermediate data to be rebuilt just because a 
> file was moved to a new machine.

This seems to have several drawbacks, like increasing the size of the document. 
How big is the intermediary data? What if someone needs to email the document — 
will that data make it too big?

Also, what happens if the user doesn’t have write access to the document? It 
might be on a read-only file server volume, or in a Time Machine backup or 
something. (I was going to add “or on a CD-ROM”, but I don’t know if anyone 
still uses those.)

I would store this data in a subdirectory of the standard Caches directory, 
with a filename based on the document’s unique file ID.

—Jens
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to