• 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: Encoding/Decoding Multiple Objects in MyDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Encoding/Decoding Multiple Objects in MyDocument


  • Subject: Re: Encoding/Decoding Multiple Objects in MyDocument
  • From: Ondra Cada <email@hidden>
  • Date: Thu, 27 Apr 2006 21:22:46 +0200

Jason,

On 27.4.2006, at 21:15, Jason Barker wrote:

How do I set this up to archive and unarchive both arrays?

(i) use keyed archiving explicitly to store/read each with own key: more code, arguably cleaner, more efficient if there's probability for only one of arrays being read;
(ii) just put them both in another array which will be stored and read: extremely easy, arguably slightly unclean, both arrays have to be read each time (this was the common solution before keyed archivers).
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Encoding/Decoding Multiple Objects in MyDocument (From: Jason Barker <email@hidden>)

  • Prev by Date: Re: how do I put ints in for NSUserDefaults for keys?
  • Next by Date: Re: First day of the week? Which one?
  • Previous by thread: Encoding/Decoding Multiple Objects in MyDocument
  • Next by thread: Re: Getting a table to resize columns. I'm doing everything right but it's not working?
  • Index(es):
    • Date
    • Thread