How to use NSArrayController associated with NSUserDefaultsController with a custom class

I have an NSArrayController associated with an NSUserDefaultsController, and the array stores my own class, which corresponds to NSCoding.

I seem to need NSArchiver, but I can't figure out how to glue it all together

+3
source share
1 answer

You need a value converter that you can specify in the binding parameters. You can use it NSKeyedUnarchiveFromDatato serialize an array to enter data with a key, or make your own custom value converter to convert objects into an array into the property lists of your own design.

+2

Source: https://habr.com/ru/post/1732997/


All Articles