Re: storing keyed archives in user defaults
Re: storing keyed archives in user defaults
- Subject: Re: storing keyed archives in user defaults
- From: "Sean McBride" <email@hidden>
- Date: Thu, 24 Mar 2005 15:40:18 -0500
- Organization: Rogue Research
On 2005-03-21 18:03, todd ransom said:
>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?
I'm not exactly sure what you are talking about, but the user defaults
return immutable objects... that is, you can't change them. If you google
for 'user defaults mutable' you will find more on the topic.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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