Re: how to set allowedClasses for UIStateRestorationKeyedUnarchiver

Gerriet M. Denkmann

On 18 Mar 2022, at 07:23, Ben Kennedy <ben-groups@...> wrote:

On 16 Mar 2022, at 11:54 pm, Gerriet M. Denkmann <gerriet@...> wrote:

So: How to explicitly include NSNumber into the client allowed classes set ?
Have you tried using secure [de]coding?
replacing in:
override func decodeRestorableState(with coder: NSCoder)

languageFilter = coder.decodeObject(forKey: "languageFilter”)
languageFilter = coder.decodeObject(of: [NSString.self], forKey: "languageFilter”)

solved the problem.

Thanks for your help!


Join { to automatically receive all group messages.