• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: HERE'S HOW: distinguish old archives from keyed archives
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HERE'S HOW: distinguish old archives from keyed archives


  • Subject: Re: HERE'S HOW: distinguish old archives from keyed archives
  • From: Chris Kane <email@hidden>
  • Date: Mon, 1 Sep 2003 19:57:04 -0700

On Aug 31, 2003, at 9:25 PM, Drew McCormack wrote:

First of all, IMHO, you should be using a different file extension for a new document format which is keyed-archiving-based rather than old-archiving-based. It's a different file format after all. But most of you won't listen to that advice.
I considered this option, and wanted to implement it, but couldn't figure out a nice way to do it. I don't want my users to notice that anything has changed. So they open an old format file called foo.tsdoc, but when they save this, it should be renamed to foo.tsdoc1, for example. I guess you have to call "setFileName:" after loading. Is that right?

The other thing is, when I tested this idea, the type passed to my load... method did not seem to correspond to the document type I had set for the extension of the file. Could this be because I didn't log out or restart?

On NSDocument questions, I have no idea.

If you convert the user's document for them, regardless of whether you change the extension or not, you may want to give them a warning, because the document will no longer be readable, presumably, in older versions of your app.


Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
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.

References: 
 >Re: HERE'S HOW: distinguish old archives from keyed archives (From: Drew McCormack <email@hidden>)

  • Prev by Date: dylib (libz) access and use?
  • Next by Date: open panel and nsdocumentcontroller
  • Previous by thread: Re: HERE'S HOW: distinguish old archives from keyed archives
  • Next by thread: set color of color well in AppleScriptStudio
  • Index(es):
    • Date
    • Thread