Re: RTFDFromRange returns different data
Re: RTFDFromRange returns different data
- Subject: Re: RTFDFromRange returns different data
- From: Kyle Sluder <email@hidden>
- Date: Sat, 13 Nov 2010 11:36:05 -0800
On Sat, Nov 13, 2010 at 11:02 AM, Keary Suska <email@hidden> 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#//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 (email@hidden)
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:
This email sent to email@hidden