• 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: storing keyed archives in user defaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: storing keyed archives in user defaults


  • Subject: Re: storing keyed archives in user defaults
  • From: Duncan Campbell <email@hidden>
  • Date: Tue, 22 Mar 2005 14:16:45 +1100


I need to store an array of custom objects in user defaults. This object supports <NSCoding> and everything works fine when I am reading and writing it programmatically. But if I try to bind an array controller's contentArray using NSUnarchiveFromData I get:

+[NSUnarchiver unarchiveObjectWithData:]: extra data discarded

And the binding does not work. Do I need to write a value transformer
to unarchive keyed data?


Take a look here for some examples that should help:

http://homepage.mac.com/mmalc/CocoaExamples/controllers.html

---------------------------------------------------------------
Duncan Campbell
http://www.duncanandsarah.com/duncan
---------------------------------------------------------------

_______________________________________________
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


  • Prev by Date: Re: Benefits of subclassing NSWindowController?
  • Next by Date: I am Completly Stumped, NSTableView
  • Previous by thread: Re: storing keyed archives in user defaults
  • Next by thread: [SOLVED] Re: How to adjust the drag & drop start timing?
  • Index(es):
    • Date
    • Thread