Re: Modern Cocoa Application Examples
Re: Modern Cocoa Application Examples
- Subject: Re: Modern Cocoa Application Examples
- From: Scott Thompson <email@hidden>
- Date: Wed, 15 Aug 2007 11:34:58 -0500
On Aug 15, 2007, at 10:13 AM, Richard Somers wrote:
1. Numbers does not appear to use Core Data in the on disk
persistent store.
Core Data is a fine technology and has many useful applications, but
may not be the ideal choice in all cases.
In this case, it might be that the talented engineers who put together
Numbers examined Core Data and determined that it did not meet their
needs.
More likely, however, I would speculate that because Numbers is based
on the same code base as Keynote and Pages; both of which pre-date the
release of Core Data.
2. The saved document is a package. Most all document data appears
to be in the index.xml.gz file which is located, not in the Contents
folder, but at the main level of the package. The Contents folder
has a single file, PkgInfo, which contains eight questions marks.
All of this seems a little odd.
This doesn't seem odd to me. The folder structure which calls for a
Contents folder only applies to application packages (and probably
then only for compatiblity with Mac OS 9).
Read the documentation here:
http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFBundles/Concepts/DocumentBundles.html
under "Defining your Document Directory Structure"
Of the oddities you've noticed, the most curious (and most benign) is
the PkgInfo file. PkgInfo file is also a legacy mechanism for
providing a type and creator for the file. I'm not sure how closely
Mac OS X would honor it. If it's going to be there, it probably
should contain something more appropriate than a creator of '????' and
type of '????' but as it's an optional file anyway it shouldn't cause
too much concern. Most of the operating system services should be
using UTI information and the file type extension anyway.
Scott
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden