Question

Hello I need to load NSKeyedArchiver classes to C++/CLI counterparts. Is there any way to get internal format of NSKeyedArchiver?
Another option is to rewrite whole saving and opening code into pure C++ for both Mac and Windows.

Thanks a lot.

Was it helpful?

Solution

So your constraints seem to be:

  1. Something easy to parse on both Windows and Mac.
  2. 3D modeling data, so the format needs to be efficient

If you want something quick and dirty, go with a binary plist (and possibly gzip it). You could also try Google's protocol buffers but I have no experience with that. There are also a couple open source implementations of Foundation out there -- Cocotron might be most useful for you.

OTHER TIPS

If you're not serializing anything Objective-C specific then just use XML property lists.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top