using NSFileWrapper
using NSFileWrapper
- Subject: using NSFileWrapper
- From: Chris Meyer <email@hidden>
- Date: Wed, 20 Nov 2002 17:47:15 -0800
I have an application where I'm going to store my document as a bundle;
inside the bundle will be many potentially large files (movies and
images).
I'm considering using an NSFileWrapper to manage the files in the
bundle. Has anyone had any experience using NSFileWrappers for document
bundles? Are NSFileWrappers intended to be used for that purpose (it
would seem so, since NSDocument has methods to save the document using
NSFileWrappers -- but actually trying to use them leads me to some
difficulties).
One specific problem I'm having is that the document provides an
NSFileWrapper when the document is loaded via
loadFileWrapperRepresentation:ofType:; but am I supposed to retain that
wrapper so that I can retrieve the files in the wrapper? And if I do
retain it, should I supply the same wrapper back through the NSDocument
in fileWrapperRepresentationOfType:? And if I don't retain it, how do I
get access to my files after the document has been loaded (these are
potentially large movies that I can't load into memory)? Again, is
NSFileWrapper the right tool for this job?
Any comments, experience, or answers would be helpful. Thanks.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.