Re: Place for app version value in document wrapper
Re: Place for app version value in document wrapper
- Subject: Re: Place for app version value in document wrapper
- From: Sherm Pendley <email@hidden>
- Date: Thu, 10 May 2007 19:25:55 -0400
On May 10, 2007, at 6:36 PM, Jaime Magiera wrote:
Thanks for all the responses. It sounds like adding a
"documentVersion" to my document's config plist is the best bet
moving forward. Scott nailed it when we said this is really a
document-side issue and should be changed only when that format
changes. One of the projects I'm working on was originally written
(by another engineer) in a very static, hard-coded, non-mutable
way. Changing the app has meant some dramatic changes to the
document format. Having a documentVersion variable will help simply
the processing of updating documents when opened in a newer version
of the application.
One really simple, straightforward way to handle that would be to use
a new filename extension for the new format. If the old format is
"foo", you could use "foo2" or "foox" for the new format. This would
be especially appropriate if the first version of your software
doesn't know to check for a document-version attribute, and isn't
capable of handling the newer format.
That's what Apple did, with .pbproj, .xcode, and .xcodeproj formats.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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