Any subsequently encountered objects of class trueName will be archived as instances of class inArchiveName . This method overrides the superclass implementation to allow object to be encoded only if it's also encoded unconditionally by another object in the object graph. Conditional encoding lets you encode one part of a graph detached from the rest. If object is nil , the NSArchiver encodes it unconditionally as nil . This method raises an NSInvalidArgumentException if no root object has been encoded.
Archives rootObject along with all the objects it's connected to.
If any object is encountered more than once while traversing the graph, it's encoded only once, but the multiple references to it are stored. To encode multiple object graphs, use distinct NSArchivers. Raises an NSInvalidArgumentException if data is nil . Both object and newObject must be valid objects. Inc. All rights reserved.