API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
CPKeyedUnarchiver Class Reference

Unarchives objects created using CPKeyedArchiver. More...

#import <CPKeyedUnarchiver.h>

+ Inheritance diagram for CPKeyedUnarchiver:

Instance Methods

(BOOL) - allowsKeyedCoding
 
(Class) - classForClassName:
 
(BOOL) - containsValueForKey:
 
(BOOL) - decodeBoolForKey:
 
(id) - decodeBytesForKey:
 
(double) - decodeDoubleForKey:
 
(float) - decodeFloatForKey:
 
(int) - decodeIntForKey:
 
(id) - decodeObjectForKey:
 
(CGPoint) - decodePointForKey:
 
(CGRect) - decodeRectForKey:
 
(CGSize) - decodeSizeForKey:
 
(id) - delegate
 
(void) - finishDecoding
 
(id) - initForReadingWithData:
 
(void) - setClass:forClassName:
 
(void) - setDelegate:
 
- Instance Methods inherited from CPCoder
(void) - encodeBycopyObject:
 
(void) - encodeConditionalObject:
 
(void) - encodeDataObject:
 
(void) - encodeObject:
 
(void) - encodePoint:
 
(void) - encodePropertyList:
 
(void) - encodeRect:
 
(void) - encodeRootObject:
 
(void) - encodeSize:
 
(void) - encodeValueOfObjCType:at:
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray- exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(id) - init
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Class Methods

(void) + initialize
 
(id) + unarchiveObjectWithData:
 
(id) + unarchiveObjectWithFile:
 
(id) + unarchiveObjectWithFile:asynchronously:
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(Class) + class
 
(void) + exposeBinding:
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isSubclassOfClass:
 
(CPSet+ keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Additional Inherited Members

- Instance Variables inherited from CPObject
Class isa
 

Detailed Description

Unarchives objects created using CPKeyedArchiver.

CPKeyedUnarchiver is used for creating objects out of coded files or CPData objects that were created by CPKeyedArchiver. More specifically, this class unarchives objects from a data stream or file and brings them back into memory for programmatic usage.

-(Class)unarchiver:(CPKeyedUnarchiver)unarchiver cannotDecodeObjectOfClassName:(CPString)name originalClasses:(CPArray)classNames; Called when the specified class is not available during decoding. The delegate may load the class, or return a substitute class to use instead.

Parameters
unarchiverthe unarchiver performing the decode
namethe name of the class that can't be found
anarray of class names describing the encoded object's class hierarchy. The first index is the encoded class name, and each superclass is after that.
Returns
the Class to use instead or nil to abort the unarchiving operation

-(id)unarchiver:(CPKeyedUnarchiver)unarchiver didDecodeObject:(id)object; Called when the unarchiver decodes an object.

Parameters
unarchiverthe unarchiver doing the decoding
objectthe decoded object
Returns
a substitute to use for the decoded object. This can be the same object argument provide, another object or nil.

-(void)unarchiver:(CPKeyedUnarchiver)unarchiver willReplaceObject:(id)object withObject:(id)newObject; Called when a decoded object has been substituted with another. (for example, from -unarchiver:didDecodeObject:.

Parameters
unarchiverthe unarchiver that decoded the object
objectthe original decoded object
newObjectthe replacement object

-(void)unarchiverWillFinish:(CPKeyedUnarchiver)unarchiver; Called when the unarchiver is about to finish decoding.

Parameters
unarchiverthe unarchiver that's about to finish

-(void)unarchiverDidFinish:(CPKeyedUnarchiver)unarchiver; Called when the unarchiver has finished decoding.

Parameters
unarchiverthe unarchiver that finished decoding

Definition at line 2 of file CPKeyedUnarchiver.h.

Method Documentation

- (BOOL) allowsKeyedCoding
implementation

Returns a flag indicating whether the receiver supports keyed coding. The default implementation returns NO. Subclasses supporting keyed coding must override this to return YES.

Reimplemented from CPCoder.

Definition at line 430 of file CPKeyedUnarchiver.j.

- (Class) classForClassName: (CPString aClassName
implementation

Definition at line 425 of file CPKeyedUnarchiver.j.

- (BOOL) containsValueForKey: (CPString aKey
implementation

Definition at line 197 of file CPKeyedUnarchiver.j.

- (BOOL) decodeBoolForKey: (CPString aKey
implementation

Definition at line 233 of file CPKeyedUnarchiver.j.

- (id) decodeBytesForKey: (CPString aKey
implementation

Definition at line 357 of file CPKeyedUnarchiver.j.

- (double) decodeDoubleForKey: (CPString aKey
implementation

Definition at line 255 of file CPKeyedUnarchiver.j.

- (float) decodeFloatForKey: (CPString aKey
implementation

Definition at line 243 of file CPKeyedUnarchiver.j.

- (int) decodeIntForKey: (CPString aKey
implementation

Definition at line 267 of file CPKeyedUnarchiver.j.

- (id) decodeObjectForKey: (CPString aKey
implementation

Definition at line 324 of file CPKeyedUnarchiver.j.

- (CGPoint) decodePointForKey: (CPString aKey
implementation

Definition at line 279 of file CPKeyedUnarchiver.j.

- (CGRect) decodeRectForKey: (CPString aKey
implementation

Definition at line 294 of file CPKeyedUnarchiver.j.

- (CGSize) decodeSizeForKey: (CPString aKey
implementation

Definition at line 309 of file CPKeyedUnarchiver.j.

- (id) delegate
implementation

Definition at line 388 of file CPKeyedUnarchiver.j.

- (void) finishDecoding
implementation

Definition at line 376 of file CPKeyedUnarchiver.j.

- (id) initForReadingWithData: (CPData data
implementation

Definition at line 140 of file CPKeyedUnarchiver.j.

+ (void) initialize
implementation

Reimplemented from CPObject.

Definition at line 120 of file CPKeyedUnarchiver.j.

- (void) setClass: (Class)  aClass
forClassName: (CPString aClassName 
implementation

Definition at line 420 of file CPKeyedUnarchiver.j.

- (void) setDelegate: (id)  aDelegate
implementation

Definition at line 397 of file CPKeyedUnarchiver.j.

+ (id) unarchiveObjectWithData: (CPData aData
implementation

Definition at line 163 of file CPKeyedUnarchiver.j.

+ (id) unarchiveObjectWithFile: (CPString aFilePath
implementation

Definition at line 182 of file CPKeyedUnarchiver.j.

+ (id) unarchiveObjectWithFile: (CPString aFilePath
asynchronously: (BOOL)  aFlag 
implementation

Definition at line 189 of file CPKeyedUnarchiver.j.


The documentation for this class was generated from the following files: