• 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
archive only what changed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

archive only what changed?


  • Subject: archive only what changed?
  • From: Randy Canegaly <email@hidden>
  • Date: Mon, 07 Jul 2008 08:13:32 -0600

I have an application whose data model is an NSMutableArray with elements that could be pointers other NSMutableArrays, much like what you would navigate with a NSIndexPath. I am using NSKeyedArchiver to archive the data model to a file. Right now I archive the entire top level array object (and therefore all its parts) to the file using archiveRootObject:toFile.
Is it possible to archive only the portion of the data model that changed rather than the entire thing every time? I need the entire data model to be archived so that it can be reloaded when the application starts but for performance reasons I am interested in seeing if it's possible upon a change to the data to only re-archive the small part that changed.
_______________________________________________


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


  • Follow-Ups:
    • Re: archive only what changed?
      • From: "Joan Lluch (casa)" <email@hidden>
    • Re: archive only what changed?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Rerouting keyboard input
  • Next by Date: Re: Toolbar code in separate Controller?
  • Previous by thread: Re: Rerouting keyboard input
  • Next by thread: Re: archive only what changed?
  • Index(es):
    • Date
    • Thread