Hopefully that title is clear enough. Anyways, it seems:
[NSKeyedArchiver archiveRootObject:rootObject toFile:path];
is restricted to NSPropertyListBinaryFormat_v1_0.
I need the format to be human readable [so xml]. If you’re interested, this is part of project I’ll eventually put up on github with a blog post about ‘How to Unit Test GPS Applications’
🙂
You have to use
NSPropertyListSerializationto convert it. Basically, assuming the object that you’re serializing is calledmyObjectand the ultimate file is stored inmyPath, you would serialize it to XML using something like the following code fragment: