I am new using
NSCoding
protocol.
Are you sure you should be using
NSCoding
at all. Most Swift programs use Swift’s
Codable
instead. There are good reasons to using
NSCoding
— for example, to archive an object graph with non-trivial connectivity — but if you don’t need to handle such cases then
Codable
is much easier.
Also, if you decide to stick with
NSCoding
, you
really need to look at
NSSecureCoding
. All the standard uses cases for
NSCoding
can benefit from the security provided by
NSSecureCoding
.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"