• 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: Document App or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Document App or not?


  • Subject: Re: Document App or not?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Mon, 9 Feb 2004 21:24:24 +0100

At 20:38 Uhr -0800 08.02.2004, Dustin Voss wrote:
I'm no expert, but the document framework has some pros and cons. On the con

Definitely true :-)

One thing I found out the hard way is that the document architecture doesn't easily let you modify a saved file. Generally, it expects you to read in the entire file, and to write it out in its entirety. So, if your documents are actually databases where you don't want to load the entire DB, you can't just save by changing the file you're handed. Apparently, even when you've set the document not to *keep* a backup copy, it still creates one. It merely deletes it again afterwards.

While this is great to avoid loss of data for simple file formats, it absolutely sucks for huge files of which you only want to load/write out parts.

At least that goes for a run-of-the-mill NSDocument. Maybe it's easy to subclass the critter at certain strategic points to get around the intermediate files and I just haven't noticed them yet.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: 
 >Document App or not? (From: Peer Allan <email@hidden>)
 >Re: Document App or not? (From: Dustin Voss <email@hidden>)

  • Prev by Date: Re: catching uncaught exceptions
  • Next by Date: Re: Using Categories
  • Previous by thread: Re: Document App or not?
  • Next by thread: NSImageView as image well
  • Index(es):
    • Date
    • Thread