Re: storing keyed archives in user defaults
Re: storing keyed archives in user defaults
- Subject: Re: storing keyed archives in user defaults
- From: todd ransom <email@hidden>
- Date: Thu, 24 Mar 2005 14:56:50 -0700
I was referring to an array of custom objects that archive themselves
using Keyed Archiving. I went ahead and wrote the value transformer, I
was just hoping someone would give me a quick yes or no before I spent
the time to do it.
TR
On Mar 24, 2005, at 1:40 PM, Sean McBride wrote:
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