Up

EOKeyValueArchiver Class

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.


Contents -

  1. Software documentation for the EOKeyValueArchiver class
  2. Software documentation for the EOKeyValueUnarchiver class
  3. Software documentation for the NSObject(EOKeyValueArchiverDelegation) informal protocol
  4. Software documentation for the NSObject(EOKeyValueArchivingAwakeMethods) informal protocol
  5. Software documentation for the NSObject(EOKeyValueUnarchiverDelegation) informal protocol
  6. Software documentation for the EOKeyValueArchiving protocol

Software documentation for the EOKeyValueArchiver class

EOKeyValueArchiver : NSObject

Declared in:
EOControl/EOKeyValueArchiver.h
Availability: OpenStep

Description forthcoming.

Instance Variables

Method summary

delegate 

- (id) delegate;
Availability: OpenStep

Description forthcoming.

dictionary 

- (NSDictionary*) dictionary;
Availability: OpenStep

Description forthcoming.

encodeBool: forKey: 

- (void) encodeBool: (BOOL)yn forKey: (NSString*)key;
Availability: OpenStep

Description forthcoming.

encodeInt: forKey: 

- (void) encodeInt: (int)intValue forKey: (NSString*)key;
Availability: OpenStep

Description forthcoming.

encodeObject: forKey: 

- (void) encodeObject: (id)object forKey: (NSString*)key;
Availability: OpenStep

Description forthcoming.

encodeReferenceToObject: forKey: 

- (void) encodeReferenceToObject: (id)object forKey: (NSString*)key;
Availability: OpenStep

Description forthcoming.

setDelegate: 

- (void) setDelegate: (id)delegate;
Availability: OpenStep

Description forthcoming.



Instance Variables for EOKeyValueArchiver Class

_delegate

@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.

_propertyList

@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.




Software documentation for the EOKeyValueUnarchiver class

EOKeyValueUnarchiver : NSObject

Declared in:
EOControl/EOKeyValueArchiver.h
Availability: OpenStep

Description forthcoming.

Instance Variables

Method summary

_dictionaryForPropertyList: 

- (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.

_findTypeForPropertyListDecoding: 

- (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.

_objectForPropertyList: 

- (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.

_objectsForPropertyList: 

- (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.

awakeObjects 

- (void) awakeObjects;
Availability: OpenStep

Description forthcoming.

decodeBoolForKey: 

- (BOOL) decodeBoolForKey: (NSString*)key;
Availability: OpenStep

Description forthcoming.

decodeIntForKey: 

- (int) decodeIntForKey: (NSString*)key;
Availability: OpenStep

Description forthcoming.

decodeObjectForKey: 

- (id) decodeObjectForKey: (NSString*)key;
Availability: OpenStep

Description forthcoming.

decodeObjectReferenceForKey: 

- (id) decodeObjectReferenceForKey: (NSString*)key;
Availability: OpenStep

Description forthcoming.

delegate 

- (id) delegate;
Availability: OpenStep

Description forthcoming.

ensureObjectAwake: 

- (void) ensureObjectAwake: (id)object;
Availability: OpenStep

Description forthcoming.

finishInitializationOfObjects 

- (void) finishInitializationOfObjects;
Availability: OpenStep

Description forthcoming.

initWithDictionary: 

- (id) initWithDictionary: (NSDictionary*)dictionary;
Availability: OpenStep

Description forthcoming.

isThereValueForKey: 

- (BOOL) isThereValueForKey: (NSString*)key;
Availability: OpenStep

Description forthcoming.

parent 

- (id) parent;
Availability: OpenStep

Description forthcoming.

setDelegate: 

- (void) setDelegate: (id)delegate;
Availability: OpenStep

Description forthcoming.



Instance Variables for EOKeyValueUnarchiver Class

_allUnarchivedObjects

@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.

_awakenedObjects

@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.

_delegate

@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.

_nextParent

@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.

_parent

@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.

_propertyList

@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.




Software documentation for the NSObject(EOKeyValueArchiverDelegation) informal protocol

NSObject(EOKeyValueArchiverDelegation)

Declared in:
EOControl/EOKeyValueArchiver.h
Availability: OpenStep

Description forthcoming.
Method summary

archiver: referenceToEncodeForObject: 

- (id) archiver: (EOKeyValueArchiver*)archiver referenceToEncodeForObject: (id)object;
Availability: OpenStep

Description forthcoming.

Software documentation for the NSObject(EOKeyValueArchivingAwakeMethods) informal protocol

NSObject(EOKeyValueArchivingAwakeMethods)

Declared in:
EOControl/EOKeyValueArchiver.h
Availability: OpenStep

Description forthcoming.
Method summary

awakeFromKeyValueUnarchiver: 

- (void) awakeFromKeyValueUnarchiver: (EOKeyValueUnarchiver*)unarchiver;
Availability: OpenStep

Description forthcoming.

finishInitializationWithKeyValueUnarchiver: 

- (void) finishInitializationWithKeyValueUnarchiver: (EOKeyValueUnarchiver*)unarchiver;
Availability: OpenStep

Description forthcoming.

Software documentation for the NSObject(EOKeyValueUnarchiverDelegation) informal protocol

NSObject(EOKeyValueUnarchiverDelegation)

Declared in:
EOControl/EOKeyValueArchiver.h
Availability: OpenStep

Description forthcoming.
Method summary

unarchiver: objectForReference: 

- (id) unarchiver: (EOKeyValueUnarchiver*)archiver objectForReference: (id)keyPath;
Availability: OpenStep

Description forthcoming.

Software documentation for the EOKeyValueArchiving protocol

EOKeyValueArchiving

Declared in:
EOControl/EOKeyValueArchiver.h
Availability: OpenStep

Description forthcoming.
Method summary

encodeWithKeyValueArchiver: 

- (void) encodeWithKeyValueArchiver: (EOKeyValueArchiver*)archiver;
Availability: OpenStep

Description forthcoming.

initWithKeyValueUnarchiver: 

- (id) initWithKeyValueUnarchiver: (EOKeyValueUnarchiver*)unarchiver;
Availability: OpenStep

Description forthcoming.


Up