I have a NSArrayController bound to NSUserDefaultsController, and the array stores a custom class of mine, which conforms to NSCoding.
It seems like I need NSArchiver, but I can't quite figure out how to glue it all together
I have a NSArrayController bound to NSUserDefaultsController, and the array stores a custom class of mine, which conforms to NSCoding.
It seems like I need NSArchiver, but I can't quite figure out how to glue it all together
You need a value transformer, which you can specify in the options of the binding. You can use NSKeyedUnarchiveFromData
to serialize the array to keyed archive data, or make your own custom value transformer to convert the objects in the array to property lists of your own design.