CPKeyedUnarchiver Class Reference
[Foundation]

Unarchives objects created using CPKeyedArchiver. More...

List of all members.

Public Member Functions

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

Static Public Member Functions

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

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:
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 104 of file CPKeyedUnarchiver.j.


Member Function Documentation

- (BOOL) allowsKeyedCoding   [implementation]

Definition at line 423 of file CPKeyedUnarchiver.j.

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

Definition at line 418 of file CPKeyedUnarchiver.j.

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

Definition at line 200 of file CPKeyedUnarchiver.j.

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

Definition at line 236 of file CPKeyedUnarchiver.j.

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

Definition at line 354 of file CPKeyedUnarchiver.j.

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

Definition at line 256 of file CPKeyedUnarchiver.j.

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

Definition at line 246 of file CPKeyedUnarchiver.j.

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

Definition at line 266 of file CPKeyedUnarchiver.j.

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

Definition at line 321 of file CPKeyedUnarchiver.j.

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

Definition at line 276 of file CPKeyedUnarchiver.j.

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

Definition at line 291 of file CPKeyedUnarchiver.j.

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

Definition at line 306 of file CPKeyedUnarchiver.j.

- (id) delegate   [implementation]

Definition at line 381 of file CPKeyedUnarchiver.j.

- (void) finishDecoding   [implementation]

Definition at line 369 of file CPKeyedUnarchiver.j.

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

Definition at line 143 of file CPKeyedUnarchiver.j.

+ (void) initialize   [implementation]

Definition at line 123 of file CPKeyedUnarchiver.j.

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

Definition at line 413 of file CPKeyedUnarchiver.j.

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

Definition at line 390 of file CPKeyedUnarchiver.j.

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

Definition at line 166 of file CPKeyedUnarchiver.j.

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

Definition at line 185 of file CPKeyedUnarchiver.j.

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

Definition at line 192 of file CPKeyedUnarchiver.j.


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

Generated on Fri Apr 9 11:04:21 2010 for Cappuccino API by  doxygen 1.6.1