I am working on a project where I have various custom objects. These custom objects (some of which work with nested mutable arrays) need to be saved into a file / or files. What would be the best approach to doing so? Should I create a load & save file manager or would it be a better idea to let each object handle that?
Thank you for your time.
— Steven
Implement
NSCodingprotocol for you class:Which allows you to save and load data with
NSKeyedArchiver: