@interface NSKeyedArchiver : NSCoder
|
// Initializers |
- (id)initForWritingWithMutableData:(NSMutableData *)data;
|
// Accessor Methods |
- (void)setDelegate:(id)delegate;
|
- (id)delegate;
|
- (void)setOutputFormat:(NSPropertyListFormat)format;
|
- (NSPropertyListFormat)outputFormat;
|
- (void)setClassName:(NSString *)codedName forClass:(Class)cls;
|
// Class Methods |
+ (BOOL)archiveRootObject:(id)rootObject toFile:(NSString *)path;
|
+ (NSData *)archivedDataWithRootObject:(id)rootObject;
|
+ (NSString *)classNameForClass:(Class)cls;
|
+ (void)setClassName:(NSString *)codedName forClass:(Class)cls;
|
// Instance Methods |
- (void)encodeConditionalObject:(id)objv forKey:(NSString *)key;
|
- (void)encodeBool:(BOOL)boolv forKey:(NSString *)key;
|
- (void)encodeBytes:(const uint8_t *)bytesp length:(unsigned)lenv forKey:(NSString *)key;
|
- (void)encodeDouble:(double)realv forKey:(NSString *)key;
|
- (void)encodeFloat:(float)realv forKey:(NSString *)key;
|
- (void)encodeInt32:(int32_t)intv forKey:(NSString *)key;
|
- (void)encodeInt64:(int64_t)intv forKey:(NSString *)key;
|
- (void)encodeInt:(int)intv forKey:(NSString *)key;
|
- (NSString *)classNameForClass:(Class)cls;
|
- (void)encodeObject:(id)objv forKey:(NSString *)key;
|
- (void)finishEncoding;
|
// Methods Implemented by the Delegate |
- (void)archiver:(NSKeyedArchiver *)archiver didEncodeObject:(id)object;
|
- (id)archiver:(NSKeyedArchiver *)archiver willEncodeObject:(id)object;
|
- (void)archiver:(NSKeyedArchiver *)archiver willReplaceObject:(id)object withObject:(id)newObject;
|
- (void)archiverDidFinish:(NSKeyedArchiver *)archiver;
|
- (void)archiverWillFinish:(NSKeyedArchiver *)archiver;
|