Name
NSUnarchiver — Mac OS X 10.0
Synopsis
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.
|
@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;
|
Get Cocoa in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.