NSArchiver
NSArchiver is a class in the Foundation framework of Apple's Objective-C runtime environment. It is primarily used for the process of archiving, which is the serialization of object graphs into a data format. This data format can then be stored in a file or transmitted over a network. The inverse process, unarchiving, is handled by NSUnarchiver.
When an object is archived using NSArchiver, its state is converted into a byte stream. This process
To be archivable, objects must conform to the NSCoding protocol. This protocol requires the implementation of
NSArchiver is a fundamental tool for data persistence and serialization within macOS, iOS, watchOS, and tvOS