• 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: saveDocument and wrapper of wrappers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: saveDocument and wrapper of wrappers


  • Subject: Re: saveDocument and wrapper of wrappers
  • From: Jérôme Laurens <email@hidden>
  • Date: Mon, 20 Jan 2003 16:13:55 +0100

Le lundi, 20 jan 2003, ` 15:33 Europe/Zurich, Renaud Boisjoly a icrit :

Hi all!

I'm using a folder of fileWrappers as my document format and I've subclassed NSDocument, NSWindowController and NSDocumentController and all that.

Everything works fine, except that when a user saves an existing document after making some changes, it seems that the original document is actually replaced by a new one. For example, if the document is on the Desktop or if it has a custom icon, when saving, it may move around on the Desktop and its icon will be reset to blank.

I though this might have been because it was saving a backup version, but even if I disable that, the problem persists.

I'm guesing its due to the fact I'm using a directorywrapper of wrappers for some reson and that it has to re-create all of it every time, instead of keeping the old one. Do you think this could be the case?



Before saving the data model of your document, get a recent wrapper to the appropriate disk location then modify this wrapper to take into account your data changes, and return the updated version.

This allows to deal with packages containing CVS stuff and so on...
_______________________________________________
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.

  • Follow-Ups:
    • Re: saveDocument and wrapper of wrappers
      • From: Renaud Boisjoly <email@hidden>
References: 
 >saveDocument and wrapper of wrappers (From: Renaud Boisjoly <email@hidden>)

  • Prev by Date: Re: Hacker's Fate
  • Next by Date: Re: Warping an image with a Bezier Path
  • Previous by thread: saveDocument and wrapper of wrappers
  • Next by thread: Re: saveDocument and wrapper of wrappers
  • Index(es):
    • Date
    • Thread