NSUnarchiver
A decoder that restores data from an archive.
Declaration
class NSUnarchiverOverview
NSUnarchiver, a concrete subclass of NSCoder, defines methods for decoding a set of Objective-C objects from an archive. Such archives are produced by objects of the NSArchiver class.
In macOS 10.2 and later, NSArchiver and NSUnarchiver have been replaced by NSKeyedArchiver and NSKeyedUnarchiver respectively—see Archives and Serializations Programming Guide.
Topics
Initializing an NSUnarchiver
Decoding objects
Managing an NSUnarchiver
Substituting classes or objects
classNameDecoded(forArchiveClassName:)decodeClassName(_:asClassName:)classNameDecoded(forArchiveClassName:)decodeClassName(_:asClassName:)replace(_:with:)