# EOKeyValueArchiver Class

mguesdon@orange-concept.com
Generated at 2026-02-03 22:13:20 +0000

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]

2000-2002,2003,2004,2005 Free Software Foundation, Inc.
Software documentation for the EOKeyValueArchiver class
EOControl/EOKeyValueArchiver.h
Description forthcoming.
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.
delegate
Returns receiver's delegate
dictionary
Returns archived object/tree as propertList
encodeBool:
yn
forKey:
key
Archives boolean 'yn' as 'key'
encodeInt:
intValue
forKey:
key
Archives integer 'intValue' as 'key'
encodeObject:
object
forKey:
key
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.
encodeReferenceToObject:
object
forKey:
key
Archives the object 'object' reference as 'key' The receiver gets the reference object by calling its delegate method -archiver:referenceToEncodeForObject:
setDelegate:
delegate
Set receiver's delegate
Software documentation for the EOKeyValueUnarchiver class
EOControl/EOKeyValueArchiver.h
Description forthcoming.
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.
_dictionaryForPropertyList:
propList
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.
_findTypeForPropertyListDecoding:
obj
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.
_objectForPropertyList:
propList
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.
_objectsForPropertyList:
propList
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.
awakeObjects
Finalize unarchiving by calling awakeFromKeyValueUnarchiver: on all unarchived objects
decodeBoolForKey:
key
Returns unarchived boolean which was archived as 'key'. `NO` if no object is found
decodeIntForKey:
key
Returns unarchived integer which was archived as 'key'. 0 if no object is found
decodeObjectForKey:
key
Returns unarchived object for key. The object should be a NSString, NSData, NSArray or NSDictionary or its class instances should implements -initWithKeyValueUnarchiver:
decodeObjectReferenceForKey:
key
Returns unarchived object for the reference archived as 'key'. The receiver gets the object for reference by calling its delegate method -unarchiver:objectForReference:
delegate
Returns receiver's delegate
ensureObjectAwake:
object
ensure 'object' is awake (has received -awakeFromKeyValueUnarchiver: message)
finishInitializationOfObjects
Finalize unarchiving by calling finishInitializationWithKeyValueUnarchiver: on all unarchived objects
initWithDictionary:
dictionary
Inits unarchiver with propertyList 'dictionary'
isThereValueForKey:
key
Returns `YES` if there's a value for key 'key'
parent
Returns the parent object for the currently unarchiving object.
setDelegate:
delegate
Set the receiver's delegate
Software documentation for the NSObject(EOKeyValueArchiverDelegation) category
EOControl/EOKeyValueArchiver.h
Description forthcoming.
archiver:
archiver
referenceToEncodeForObject:
object
Returns an object to be used as reference for 'archiver' to archive 'object'. Should be overriden by EOKeyValueArchiver's delegates
Software documentation for the NSObject(EOKeyValueArchivingAwakeMethods) category
EOControl/EOKeyValueArchiver.h
Description forthcoming.
awakeFromKeyValueUnarchiver:
unarchiver
Description forthcoming.
finishInitializationWithKeyValueUnarchiver:
unarchiver
Description forthcoming.
Software documentation for the NSObject(EOKeyValueUnarchiverDelegation) category
EOControl/EOKeyValueArchiver.h
Description forthcoming.
unarchiver:
archiver
objectForReference:
keyPath
Returns an object for archived 'reference'. Implemented by EOKeyValueUnarchiver's delegate.
Software documentation for the EOKeyValueArchiving protocol
EOControl/EOKeyValueArchiver.h
Description forthcoming.
encodeWithKeyValueArchiver:
archiver
Description forthcoming.
initWithKeyValueUnarchiver:
unarchiver
Description forthcoming.