EOKeyValueArchiver object is used to archive a
tree of objects into a key/value propertyList.
EOKeyValueUnarchiver object is used to
unarchive from a propertyList a tree of objects
archived with a EOKeyValueArchiver. Example: //
Archiving: EOKeyValueArchiver*
archive=AUTORELEASE([EOKeyValueArchiver
new]); [archive setDelegate:MyArchivingDelegate];
[archiver encodeObject:anObject forKey:@"anObjectKey"];
[archiver encodeInt:125 forKey:@"aKey"];...
NSDictionary* archivePropertyList=[archiver
dictionary]; // Now unarchive archivePropertyList
EOKeyValueUnarchiver*
unarchiver=AUTORELEASE([[EOKeyValueUnarchiver
alloc]initWith:archivePropertyList]);
[archive setDelegate:MyUnarchivingDelegate];
id anObject=[unarchiver
decodeObjectForKey:@"anObjectKey"];
int anInt=[unarchiver
decodeIntForKey:@"anKey"]; [unarchiver
finishInitializationOfObjects];
[unarchiver awakeObjects]
Copyright: (C)
2000-2002,2003,2004,2005 Free Software
Foundation, Inc.
Archives the object 'object' as 'key'.
'object' should be a NSString, a NSData, NSArray
or NSDictionary or conforms to EOKeyValueArchiving
protocol. Raise an exception otherwise.
Archives the object 'object' reference
as 'key' The receiver gets the reference
object by calling its delegate method
-archiver:referenceToEncodeForObject:
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
Warning the underscore at the start of the
name of this method indicates that it is private, for
internal use only, and you should not use the
method in your code.
Returns unarchived object for key. The
object should be a NSString, NSData, NSArray or
NSDictionary or its class instances should
implements
-initWithKeyValueUnarchiver:
Returns unarchived object for the reference
archived as 'key'. The receiver gets the object
for reference by calling its delegate method
-unarchiver:objectForReference:
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.
Warning the underscore at the start of the
name of this instance variable indicates that, even
though it is not technically private, it is
intended for internal use within the package, and
you should not use the variable in other code.