On Sat, Nov 13, 2010 at 11:02 AM, Keary Suska <cocoa-...@esoteritech.com> wrote: > On Nov 13, 2010, at 9:50 AM, Kyle Sluder wrote: > >> You really shouldn't be using NSKeyedArchiver for persisting data out >> to disk, anyway. What happens if you try to load the data on an older >> version of the OS? > > This statement as I understand it is contrary to the documentation, as well > as some implied API contracts with regards to data serialization, to whit: > file:///Developer/Documentation/DocSets/com.apple.adc.documentation.AppleSnowLeopard.CoreReference.docset/Contents/Resources/Documents/index.html#documentation/Cocoa/Conceptual/Archiving/Articles/compatibility.html%23//apple_ref/doc/uid/20001055-BCICFFGE > > Unless there is something else you are referring to...
It's really just annoying. Implementing keyed archiving in a way that generates on-disk files that are backward-compatible is just as much work as defining a neutral representation format and using that. Using an actual, versioned file format is preferable for those times when you really do need to break backward compatibility. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com