Re: NSSecureCoding & NSAttributedString
Re: NSSecureCoding & NSAttributedString
- Subject: Re: NSSecureCoding & NSAttributedString
- From: Alex Zavatone <email@hidden>
- Date: Fri, 16 Feb 2018 17:06:14 -0600
Quincy, do you think that this be a case when it’s best to encrypt the strings
yourself with an HMac256 method on the attributed strings?
> On Feb 16, 2018, at 4:58 PM, Quincey Morris
> <email@hidden> wrote:
>
> On Feb 16, 2018, at 14:13 , Markus Spoettl <email@hidden> wrote:
>>
>> how can I go about decoding NSAttributedString
>
> I just tried in a playground, and the problem is in NSParagraphStyle, not
> NSAttributedString. It looks like it falls foul of the known secure coding
> issue about decoding arrays of unknown type. (NSTextTab is the only class
> that lives in an array within a paragraph style.)
>
> That means NSParagraphStyle doesn’t actually conform to NSSecureCoding, and
> therefore nor does NSAttributedString, when any non-default tabs are present.
> It’s not clear that there’s an easy workaround. The only thing I can think of
> is to archive the text tabs separately, and somehow re-install them on the
> relevant paragraph styles after decoding, but that’s going to be a huge PITA
> in general.
>
>
> _______________________________________________
>
> 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
_______________________________________________
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