Re: NSArrayController, bindings and NSUserDefaults
Re: NSArrayController, bindings and NSUserDefaults
- Subject: Re: NSArrayController, bindings and NSUserDefaults
- From: Volker in Lists <email@hidden>
- Date: Sun, 9 Nov 2008 22:05:45 +0100
Hi,
you need an formatter - NSUnarchiveFromData and then it works rather
well. I store supplementary information that each user can edit in
NSUserDefaults. The info is maintained in NSTableViews and stored as
an Array of NSMutableDictionary. Works really well.
Volker
Am 09.11.2008 um 20:41 schrieb Andre Masse:
I think you need to archive and unarchive when you read and write
each key in your dictionary.
The array controller model key path is an array of objects, so it
don't need any value transformer, right?. Now, somehow somewhere it
will need to unarchive a particular object to get at a member's
value. This is where it bites, how can I set the key path for, let's
say the userName, when this value is encoded somewhere inside the
fully encoded NSData object?
_______________________________________________
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