Up
Authors
- Manuel Guesdon (
mguesdon@orange-concept.com
)
-
Version: 21645
Date: 2005-08-17 10:07:57 +0200 (Mit, 17 Aug 2005)
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.
- Declared in:
- EOControl/EOKeyValueArchiver.h
Availability: OpenStep
Description forthcoming.
Instance Variables
Method summary
- (id)
delegate;
Availability: OpenStep
Description forthcoming.
- (NSDictionary*)
dictionary;
Availability: OpenStep
Description forthcoming.
- (void)
encodeBool: (BOOL)yn
forKey: (NSString*)key;
Availability: OpenStep
Description forthcoming.
- (void)
encodeInt: (int)intValue
forKey: (NSString*)key;
Availability: OpenStep
Description forthcoming.
- (void)
encodeObject: (id)object
forKey: (NSString*)key;
Availability: OpenStep
Description forthcoming.
- (void)
encodeReferenceToObject: (id)object
forKey: (NSString*)key;
Availability: OpenStep
Description forthcoming.
- (void)
setDelegate: (id)delegate;
Availability: OpenStep
Description forthcoming.
Instance Variables for EOKeyValueArchiver Class
@protected id _delegate;
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.
@protected NSMutableDictionary* _propertyList;
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.
- Declared in:
- EOControl/EOKeyValueArchiver.h
Availability: OpenStep
Description forthcoming.
Instance Variables
Method summary
- (id)
_dictionaryForPropertyList: (NSDictionary*)propList;
Availability: OpenStep
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.
- (id)
_findTypeForPropertyListDecoding: (id)param0;
Availability: OpenStep
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.
- (id)
_objectForPropertyList: (NSDictionary*)propList;
Availability: OpenStep
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.
- (id)
_objectsForPropertyList: (NSArray*)propList;
Availability: OpenStep
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.
- (void)
awakeObjects;
Availability: OpenStep
Description forthcoming.
- (BOOL)
decodeBoolForKey: (NSString*)key;
Availability: OpenStep
Description forthcoming.
- (int)
decodeIntForKey: (NSString*)key;
Availability: OpenStep
Description forthcoming.
- (id)
decodeObjectForKey: (NSString*)key;
Availability: OpenStep
Description forthcoming.
- (id)
decodeObjectReferenceForKey: (NSString*)key;
Availability: OpenStep
Description forthcoming.
- (id)
delegate;
Availability: OpenStep
Description forthcoming.
- (void)
ensureObjectAwake: (id)object;
Availability: OpenStep
Description forthcoming.
- (void)
finishInitializationOfObjects;
Availability: OpenStep
Description forthcoming.
- (id)
initWithDictionary: (NSDictionary*)dictionary;
Availability: OpenStep
Description forthcoming.
- (BOOL)
isThereValueForKey: (NSString*)key;
Availability: OpenStep
Description forthcoming.
- (id)
parent;
Availability: OpenStep
Description forthcoming.
- (void)
setDelegate: (id)delegate;
Availability: OpenStep
Description forthcoming.
Instance Variables for EOKeyValueUnarchiver Class
@protected NSMutableArray* _allUnarchivedObjects;
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.
@protected NSHashTable* _awakenedObjects;
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.
@protected id _delegate;
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.
@protected id _nextParent;
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.
@protected id _parent;
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.
@protected NSDictionary* _propertyList;
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.
- Declared in:
- EOControl/EOKeyValueArchiver.h
Availability: OpenStep
Description forthcoming.
Method summary
- (id)
archiver: (
EOKeyValueArchiver*)archiver
referenceToEncodeForObject: (id)object;
Availability: OpenStep
Description forthcoming.
- Declared in:
- EOControl/EOKeyValueArchiver.h
Availability: OpenStep
Description forthcoming.
Method summary
- (void)
awakeFromKeyValueUnarchiver: (
EOKeyValueUnarchiver*)unarchiver;
Availability: OpenStep
Description forthcoming.
- (void)
finishInitializationWithKeyValueUnarchiver: (
EOKeyValueUnarchiver*)unarchiver;
Availability: OpenStep
Description forthcoming.
- Declared in:
- EOControl/EOKeyValueArchiver.h
Availability: OpenStep
Description forthcoming.
Method summary
- (id)
unarchiver: (
EOKeyValueUnarchiver*)archiver
objectForReference: (id)keyPath;
Availability: OpenStep
Description forthcoming.
- Declared in:
- EOControl/EOKeyValueArchiver.h
Availability: OpenStep
Description forthcoming.
Method summary
- (void)
encodeWithKeyValueArchiver: (
EOKeyValueArchiver*)archiver;
Availability: OpenStep
Description forthcoming.
- (id)
initWithKeyValueUnarchiver: (
EOKeyValueUnarchiver*)unarchiver;
Availability: OpenStep
Description forthcoming.
Up