CPKeyedUnarchiver Class Reference
[Foundation]

List of all members.

Public Member Functions

(id) - initForReadingWithData: [implementation]
(BOOL) - containsValueForKey: [implementation]
(BOOL) - decodeBoolForKey: [implementation]
(float) - decodeFloatForKey: [implementation]
(double) - decodeDoubleForKey: [implementation]
(int) - decodeIntForKey: [implementation]
(CGPoint) - decodePointForKey: [implementation]
(CGRect) - decodeRectForKey: [implementation]
(CGSize) - decodeSizeForKey: [implementation]
(id) - decodeObjectForKey: [implementation]
(id) - decodeBytesForKey: [implementation]
(void) - finishDecoding [implementation]
(id) - delegate [implementation]
(void) - setDelegate: [implementation]
(void) - setClass:forClassName: [implementation]
(Class) - classForClassName: [implementation]
(BOOL) - allowsKeyedCoding [implementation]

Static Public Member Functions

(void) + initialize [implementation]
(id) + unarchiveObjectWithData: [implementation]
(id) + unarchiveObjectWithFile: [implementation]
(id) + unarchiveObjectWithFile:asynchronously: [implementation]


Detailed Description

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:
unarchiver the unarchiver performing the decode
name the name of the class that can't be found
an array 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:
unarchiver the unarchiver doing the decoding
object the decoded objec
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:
unarchiver the unarchiver that decoded the object
object the original decoded object
newObject the replacement object
-(void)unarchiverWillFinish:(CPKeyedUnarchiver)unarchiver; Called when the unarchiver is about to finish decoding.
Parameters:
unarchiver the unarchiver that's about to finish
-(void)unarchiverDidFinish:(CPKeyedUnarchiver)unarchiver; Called when the unarchiver has finished decoding.
Parameters:
unarchiver the unarchiver that finished decoding

Definition at line 97 of file CPKeyedUnarchiver.j.


Member Function Documentation

- (BOOL) allowsKeyedCoding   [implementation]

Definition at line 397 of file CPKeyedUnarchiver.j.

- (Class) classForClassName: (CPString aClassName   [implementation]

Definition at line 392 of file CPKeyedUnarchiver.j.

- (BOOL) containsValueForKey: (CPString aKey   [implementation]

Definition at line 185 of file CPKeyedUnarchiver.j.

- (BOOL) decodeBoolForKey: (CPString aKey   [implementation]

Definition at line 215 of file CPKeyedUnarchiver.j.

- (id) decodeBytesForKey: (CPString aKey   [implementation]

Definition at line 332 of file CPKeyedUnarchiver.j.

- (double) decodeDoubleForKey: (CPString aKey   [implementation]

Definition at line 235 of file CPKeyedUnarchiver.j.

- (float) decodeFloatForKey: (CPString aKey   [implementation]

Definition at line 225 of file CPKeyedUnarchiver.j.

- (int) decodeIntForKey: (CPString aKey   [implementation]

Definition at line 245 of file CPKeyedUnarchiver.j.

- (id) decodeObjectForKey: (CPString aKey   [implementation]

Definition at line 300 of file CPKeyedUnarchiver.j.

- (CGPoint) decodePointForKey: (CPString aKey   [implementation]

Definition at line 255 of file CPKeyedUnarchiver.j.

- (CGRect) decodeRectForKey: (CPString aKey   [implementation]

Definition at line 270 of file CPKeyedUnarchiver.j.

- (CGSize) decodeSizeForKey: (CPString aKey   [implementation]

Definition at line 285 of file CPKeyedUnarchiver.j.

- (id) delegate   [implementation]

Definition at line 358 of file CPKeyedUnarchiver.j.

- (void) finishDecoding   [implementation]

Definition at line 346 of file CPKeyedUnarchiver.j.

- (id) initForReadingWithData: (CPData data   [implementation]

Definition at line 134 of file CPKeyedUnarchiver.j.

+ (void) initialize   [implementation]

Definition at line 116 of file CPKeyedUnarchiver.j.

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

Definition at line 387 of file CPKeyedUnarchiver.j.

- (void) setDelegate: (id)  aDelegate   [implementation]

Definition at line 367 of file CPKeyedUnarchiver.j.

+ (id) unarchiveObjectWithData: (CPData data   [implementation]

Definition at line 157 of file CPKeyedUnarchiver.j.

+ (id) unarchiveObjectWithFile: (CPString aFilePath   [implementation]

Definition at line 170 of file CPKeyedUnarchiver.j.

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

Definition at line 177 of file CPKeyedUnarchiver.j.


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

Generated on Wed May 20 12:44:00 2009 for Cappuccino by  doxygen 1.5.8