Re: NSCoding vs NSSecureCoding
Re: NSCoding vs NSSecureCoding
- Subject: Re: NSCoding vs NSSecureCoding
- From: Tony Parker <email@hidden>
- Date: Wed, 18 Jun 2014 10:04:38 -0700
Hi Sean,
> On Jun 18, 2014, at 9:42 AM, Sean McBride <email@hidden> wrote:
>
> On Tue, 17 Jun 2014 08:22:40 -0700, Tony Parker said:
>
>> NSKeyedArchiver and NSKeyedUnarchiver also support secure coding as of 10.9.
>
> Tony,
>
> Thanks for the details. Are there any issues in creating an archive on 10.9 and then decoding it on 10.8 or older?
>
Nope, this should work fine. The archive itself does not contain anything different. The reason that keyed archiver allows you to set secure coding is simply to perform an additional check when encoding that all classes you’re putting in the archive adopt the NSSecureCoding protocol. So in other words, the secure decoding is an option that can be applied to any keyed archive.
- Tony
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng email@hidden
> Rogue Research www.rogue-research.com
> Mac Software Developer Montréal, Québec, Canada
>
>
_______________________________________________
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