NSUnarchiver

NSUnarchiver Mac OS X 10.0

This concrete subclass of NSCoder is used to convert archived data (such as the data produced by NSArchiver) into an object tree, which is restored to the state it was in prior to archiving.

figs/cocn_13112.gif

@interface NSUnarchiver : NSCoder
 // Initializers
   - (id)initForReadingWithData:(NSData *)data;
 // Accessor Methods
   - (void)setObjectZone:(NSZone *)zone;
   - (NSZone *)objectZone;
 // Class Methods
   + (NSString *)classNameDecodedForArchiveClassName:(NSString *)inArchiveName;
   + (void)decodeClassName:(NSString *)inArchiveName asClassName:(NSString *)trueName;
   + (id)unarchiveObjectWithData:(NSData *)data;
   + (id)unarchiveObjectWithFile:(NSString *)path;
 // Instance Methods
   - (NSString *)classNameDecodedForArchiveClassName:(NSString *)inArchiveName;
   - (void)decodeClassName:(NSString *)inArchiveName asClassName:(NSString *)trueName;
   - (BOOL)isAtEnd;
   - (void)replaceObject:(id)object withObject:(id)newObject;
   - (unsigned)systemVersion;



    Part II: API Quick Reference
    Chapter 13. Foundation Classes