Classes

EOAggregateEvent
EOAndQualifier
EOArrayDataSource
EOClassDescription
EOCooperatingObjectStore
EOCustomObject
EODataSource
EODelayedObserver
EODelayedObserverQueue
EODetailDataSource
EOEditingContext
EOEvent
EOEventCenter
EOFault
EOFaultHandler
EOFetchSpecification
EOGenericRecord
EOGlobalID
EOKeyComparisonQualifier
EOKeyGlobalID
EOKeyValueArchiver
EOKeyValueQualifier
EOKeyValueUnarchiver
EOMultiReaderLock
EONotQualifier
EOObjectStore
EOObjectStoreCoordinator
EOObserverCenter
EOObserverProxy
EOOrQualifier
EOQualifier
EOQualifierVariable
EOSharedEditingContext
EOSortOrdering
EOTemporaryGlobalID
EOUndoManager

Protocols

<EOEventRecordingHandler>
<EOKeyValueArchiving>
<EOObserving>
<EOQualifierEvaluation>
(Comparison)
(EODeprecated)
(EOEditingContextDelegation)
(EOEventRecordingHandler)
(EOKVCGDL2Additions)
(EOKeyValueCoding)
(EOKeyValueCodingAdditions)
(MacOSX)

Constants

Functions

EOCancelEvent
EOEditingContext_globalIDForObjectWithImpPtr
EOEditingContext_objectForGlobalIDWithImpPtr
EOEditingContext_recordObjectGlobalIDWithImpPtr
EOFLogAssertGood_
EOFLogC_
EOFLogDumpObject_
EOHashAddTable
EOMKKDInitializer_indexForKeyWithImpPtr
EOMKKD_hasKeyWithImpPtr
EOMKKD_indexForKeyWithImpPtr
EOMKKD_objectForKeyWithImpPtr
EOMKKD_removeObjectForKeyWithImpPtr
EOMKKD_setObjectForKeyWithImpPtr
EOMarkAtomicEvent
EOMarkEndOfEvent
EOMarkStartOfEvent
EONewEventOfClass
GDL2_Activate
GDL2_AssignAtomicallyIfNil
GDL2_PrivateInit
GDL2_isLegalDBName
GSUseStrictWO451Compatibility

Macros

GDL2_BUFFER

Types

EODeleteRule
EOEventSignatureType
EOObserverPriority

Variables

EOAdditionalExceptionsKey
EOClassDescriptionNeededForClassNotification
EOClassDescriptionNeededForEntityNameNotification
EOClassDescriptionNeededNotification
EOCooperatingObjectStoreNeeded
EOCooperatingObjectStoreWasAdded
EOCooperatingObjectStoreWasRemoved
EODefaultSharedEditingContextWasInitializedNotification
EODeletedKey
EOEditingContextDidSaveChangesNotification
EOEventGroupName
EOEventLoggingEnabled
EOEventLoggingLimit
EOEventLoggingOverflowDisplay
EOFetchLimitHintKey
EOGlobalIDChangedNotification
EOInsertedKey
EOInvalidatedAllObjectsInStoreNotification
EOInvalidatedKey
EOObjectsChangedInEditingContextNotification
EOObjectsChangedInStoreNotification
EOPrefetchingRelationshipHintKey
EOPromptAfterFetchLimitHintKey
EOQualifierVariableSubstitutionException
EOSharedEditingContextInitializedObjectsNotification
EOTargetObjectUserInfoKey
EOUnknownUserInfoKey
EOUpdatedKey
EOValidatedObjectUserInfoKey
EOValidatedPropertyUserInfoKey
EOValidationException
GDL2_EOEditingContextClass
GDL2_EOEditingContext_globalIDForObjectIMP
GDL2_EOEditingContext_objectForGlobalIDIMP
GDL2_EOEditingContext_recordObjectGlobalIDIMP
GDL2_EOFaultClass
GDL2_EOMKKDInitializerClass
GDL2_EOMKKDInitializer_indexForKeyIMP
GDL2_EONull
GDL2_Lock
GDL2_MKKDClass
GDL2_MKKD_hasKeyIMP
GDL2_MKKD_indexForKeyIMP
GDL2_MKKD_objectForKeyIMP
GDL2_MKKD_removeObjectForKeyIMP
GDL2_MKKD_setObjectForKeyIMP
GDL2_NSArray
GDL2_NSArrayClass
GDL2_NSArray_arrayIMP
GDL2_NSAutoreleasePoolClass
GDL2_NSAutoreleasePool_newIMP
GDL2_NSCalendarDateClass
GDL2_NSCalendarDate_allocWithZoneIMP
GDL2_NSDataClass
GDL2_NSData_allocWithZoneIMP
GDL2_NSData_dataWithBytes_lengthIMP
GDL2_NSDateClass
GDL2_NSDecimalNumberClass
GDL2_NSDecimalNumber_allocWithZoneIMP
GDL2_NSDictionaryClass
GDL2_NSMutableArrayClass
GDL2_NSMutableArray_allocWithZoneIMP
GDL2_NSMutableArray_arrayIMP
GDL2_NSMutableArray_arrayWithArrayIMP
GDL2_NSMutableArray_arrayWithCapacityIMP
GDL2_NSMutableDictionaryClass
GDL2_NSMutableDictionary_allocWithZoneIMP
GDL2_NSMutableDictionary_dictionaryWithCapacityIMP
GDL2_NSNumberBool_No
GDL2_NSNumberBool_Yes
GDL2_NSNumberClass
GDL2_NSNumber_allocWithZoneIMP
GDL2_NSStringClass
GDL2_NSString_allocWithZoneIMP
GDL2_NSString_defaultCStringEncodingIMP
GDL2_NSString_stringWithCStringIMP
GDL2_NSString_stringWithCString_lengthIMP
eqSel

Up

EOKeyValueArchiver Class

Authors

Manuel Guesdon (mguesdon@orange-concept.com)

Date: Generated at 2025-03-07 04:56:32 +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]

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) category
  4. Software documentation for the NSObject(EOKeyValueArchivingAwakeMethods) category
  5. Software documentation for the NSObject(EOKeyValueUnarchiverDelegation) category
  6. Software documentation for the EOKeyValueArchiving protocol

Software documentation for the EOKeyValueArchiver class

EOKeyValueArchiver : NSObject

class_EOKeyValueArchiver NSObject NSObject EOKeyValueArchiver EOKeyValueArchiver NSObject->EOKeyValueArchiver
Declared in:
EOControl/EOKeyValueArchiver.h
Description forthcoming.

Instance Variables

Method summary


delegate 

- (id) delegate;
Returns receiver's delegate

dictionary 

- (NSDictionary*) dictionary;
Returns archived object/tree as propertList

encodeBool: forKey: 

- (void) encodeBool: (BOOL)yn forKey: (NSString*)key;
Archives boolean 'yn' as 'key'

encodeInt: forKey: 

- (void) encodeInt: (int)intValue forKey: (NSString*)key;
Archives integer 'intValue' as 'key'

encodeObject: forKey: 

- (void) encodeObject: (id)object forKey: (NSString*)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: forKey: 

- (void) encodeReferenceToObject: (id)object forKey: (NSString*)key;
Archives the object 'object' reference as 'key' The receiver gets the reference object by calling its delegate method -archiver:referenceToEncodeForObject:

setDelegate: 

- (void) setDelegate: (id)delegate;
Set receiver's delegate



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

class_EOKeyValueUnarchiver NSObject NSObject EOKeyValueUnarchiver EOKeyValueUnarchiver NSObject->EOKeyValueUnarchiver
Declared in:
EOControl/EOKeyValueArchiver.h
Description forthcoming.

Instance Variables

Method summary


_dictionaryForPropertyList: 

- (id) _dictionaryForPropertyList: (NSDictionary*)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: 

- (id) _findTypeForPropertyListDecoding: (id)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: 

- (id) _objectForPropertyList: (NSDictionary*)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: 

- (id) _objectsForPropertyList: (NSArray*)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 

- (void) awakeObjects;
Finalize unarchiving by calling awakeFromKeyValueUnarchiver: on all unarchived objects

decodeBoolForKey: 

- (BOOL) decodeBoolForKey: (NSString*)key;
Returns unarchived boolean which was archived as 'key'. NO if no object is found

decodeIntForKey: 

- (int) decodeIntForKey: (NSString*)key;
Returns unarchived integer which was archived as 'key'. 0 if no object is found

decodeObjectForKey: 

- (id) decodeObjectForKey: (NSString*)key;
Returns unarchived object for key. The object should be a NSString, NSData, NSArray or NSDictionary or its class instances should implements -initWithKeyValueUnarchiver:

decodeObjectReferenceForKey: 

- (id) decodeObjectReferenceForKey: (NSString*)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 

- (id) delegate;
Returns receiver's delegate

ensureObjectAwake: 

- (void) ensureObjectAwake: (id)object;
ensure 'object' is awake (has received -awakeFromKeyValueUnarchiver: message)

finishInitializationOfObjects 

- (void) finishInitializationOfObjects;
Finalize unarchiving by calling finishInitializationWithKeyValueUnarchiver: on all unarchived objects

initWithDictionary: 

- (id) initWithDictionary: (NSDictionary*)dictionary;
Inits unarchiver with propertyList 'dictionary'

isThereValueForKey: 

- (BOOL) isThereValueForKey: (NSString*)key;
Returns YES if there's a value for key 'key'

parent 

- (id) parent;
Returns the parent object for the currently unarchiving object.

setDelegate: 

- (void) setDelegate: (id)delegate;
Set the receiver's delegate



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) category

NSObject(EOKeyValueArchiverDelegation)

Declared in:
EOControl/EOKeyValueArchiver.h
Description forthcoming.

Method summary


archiver: referenceToEncodeForObject: 

- (id) archiver: (EOKeyValueArchiver*)archiver referenceToEncodeForObject: (id)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

NSObject(EOKeyValueArchivingAwakeMethods)

Declared in:
EOControl/EOKeyValueArchiver.h
Description forthcoming.

Method summary


awakeFromKeyValueUnarchiver: 

- (void) awakeFromKeyValueUnarchiver: (EOKeyValueUnarchiver*)unarchiver;
Description forthcoming.

finishInitializationWithKeyValueUnarchiver: 

- (void) finishInitializationWithKeyValueUnarchiver: (EOKeyValueUnarchiver*)unarchiver;
Description forthcoming.

Software documentation for the NSObject(EOKeyValueUnarchiverDelegation) category

NSObject(EOKeyValueUnarchiverDelegation)

Declared in:
EOControl/EOKeyValueArchiver.h
Description forthcoming.

Method summary


unarchiver: objectForReference: 

- (id) unarchiver: (EOKeyValueUnarchiver*)archiver objectForReference: (id)keyPath;
Returns an object for archived 'reference'. Implemented by EOKeyValueUnarchiver's delegate.

Software documentation for the EOKeyValueArchiving protocol

EOKeyValueArchiving

Declared in:
EOControl/EOKeyValueArchiver.h
Description forthcoming.

Method summary


encodeWithKeyValueArchiver: 

- (void) encodeWithKeyValueArchiver: (EOKeyValueArchiver*)archiver;
Description forthcoming.

initWithKeyValueUnarchiver: 

- (id) initWithKeyValueUnarchiver: (EOKeyValueUnarchiver*)unarchiver;
Description forthcoming.


Up