Version: 1.0

Posted: 2009-04-29

Build Requirements: Xcode Tools 3.0 and Mac OS X Version 10.5

Runtime Requirements: Mac OS X Version 10.5

View Source Code:

Download Sample (“”, 78.4K)
Download Sample (“PersistentDocumentFileWrappers.dmg”, 85.4K)


A directory file wrapper allows you to adopt a package format for your documents. Document packages give the illusion of a single document to users but provide you with more flexibility in how you store the document data internally. The standard implementation of NSPersistentDocument does not support this functionality, but it may be useful for some Core Data Documents to be able to use a package format. For example, it may be preferable to store image data as separate files rather than embedding that data in the persistent store.

Document Revision History

Date Notes
2009-04-29This sample demonstrates how directory file wrappers can be used with NSPersistentDocument.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.