Re: Document Packages Examples...
Re: Document Packages Examples...
- Subject: Re: Document Packages Examples...
- From: Ali Ozer <email@hidden>
- Date: Sat, 21 Jan 2006 10:33:00 -0800
Document packages are simply folders which are recognized by the
system as packages because:
1. CFBundleDocumentTypes in your app's Info.plist identifies the
document type as a package with the LSTypeIsPackage key.
2. A Contents/PkgInfo file inside the package (minimally with 8 "?"s)
enables a folder to be recognized as a package in the absence of an
app to declare it as a package.
Note that document packages can be pretty simple; they don't need to
contain the whole hierarchy you might find in an application bundle,
for instance. Nor do they need Info.plist files. You also don't need
to put your contents under Contents. rtfd and nib are two of the
simpler examples you can fine.
In Cocoa, NSFileWrapper can be used to read/write file packages.
Ali
Begin forwarded message:
From: Rick Langschultz <email@hidden>
Date: January 21, 2006 9:52:52 PST
To: Cocoa Web Mailing List <email@hidden>
Subject: Document Packages Examples...
Are there any resources for creating Document Packages. Document
Packages are things like Pages and Keynote files which are actually
directories that allow the system to open that directory as a
single file. Anyway; any examples out there?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden