December 2013
Intermediate to advanced
132 pages
1h 58m
English
CHAPTER 28
![]()
Object Archiving
Object Archiving Defined
Saving a copy of your app’s object graph to be used later on as a backup is called object archiving. Objective-C has classes that can help you archive your object graph. Each class that supports archiving must adopt the NSCoding protocol and implement two methods needed by the NSKeyedArchiver and NSKeyedUnarchiver classes.
NSCoding
Each class that will support archiving must adopt the NSCoding protocol and implement the required methods. These methods will help the archivers to store the property values stored in the objects that need to be archived.
To adopt the NSCoding protocol, add the ...
Read now
Unlock full access