Re: NSSecureCoding & NSAttributedString

2018-02-16 Thread Jens Alfke
> On Feb 16, 2018, at 4:51 PM, Quincey Morris > wrote: > > Unless someone has a bright idea, I don’t any way around concluding that > NSAttributedString can’t be used with NSSecureCoding. You could encode the NSAttributedString as RTF, which is trivially

Re: NSSecureCoding & NSAttributedString

2018-02-16 Thread Quincey Morris
On Feb 16, 2018, at 15:58 , Alex Zavatone wrote: > > So, splitting the solution into separate archival and unarchiving into 2 > sections, where the unsupported classes are handled separately is the ugly > but required path to take? It’s hard to say in general, because having

Re: NSSecureCoding & NSAttributedString

2018-02-16 Thread Alex Zavatone
> On Feb 16, 2018, at 5:17 PM, Quincey Morris > wrote: > > On Feb 16, 2018, at 15:06 , Alex Zavatone > wrote: >> >> do you think that this be a case when it’s best to encrypt the strings >> yourself with an HMac256

Re: NSSecureCoding & NSAttributedString

2018-02-16 Thread Quincey Morris
On Feb 16, 2018, at 15:06 , Alex Zavatone wrote: > > 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? There’s no actual encryption in NSSecureCoding, it’s just about making sure that malicious

Re: NSSecureCoding & NSAttributedString

2018-02-16 Thread Alex Zavatone
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 > wrote: > > On Feb 16, 2018, at 14:13 , Markus Spoettl

Re: NSSecureCoding & NSAttributedString

2018-02-16 Thread Quincey Morris
On Feb 16, 2018, at 14:13 , Markus Spoettl 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

NSSecureCoding & NSAttributedString

2018-02-16 Thread Markus Spoettl
Hi there, I have an app that stores - among other things - NSAttributedStrings. In the process of converting the -initWithCoder: methods to NSSecureCoding I'm now hitting something I don't know how to handle. What I do is the following and it works (notes is an NSAttributedString * field