NSMutableArray to NSData and back...
Hi all,
when exiting my app I want to convert my nsmutablearray to nsdata and then store it. When the application loads I want to convert the nsdata back into a nsmutablearray to be able to use it.
There is a reason why I dont just store the nsmutablearray into a plist. That actually would be easy.
The nsmutablearray consists of strings, arrays and dictionarys.
What would be the best way to
1) convert back and forth and
2) how and in what format (in a file?, if yes, what file?, in NSUserDefaults?) should i store the nsdata?
Thanks for taking your time!
|