Unarchives objects created using CPKeyedArchiver. More...
#import <CPKeyedUnarchiver.h>
Inheritance diagram for CPKeyedUnarchiver:Class Methods | |
| (void) | + initialize |
| (id) | + unarchiveObjectWithData: |
| (id) | + unarchiveObjectWithFile: |
| (id) | + unarchiveObjectWithFile:asynchronously: |
Class Methods inherited from CPObject | |
| (BOOL) | + accessInstanceVariablesDirectly |
| (id) | + alloc |
| (id) | + allocWithCoder: |
| (BOOL) | + automaticallyNotifiesObserversForKey: |
| (void) | + cancelPreviousPerformRequestsWithTarget: |
| (void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
| (Class) | + class |
| (BOOL) | + conformsToProtocol: |
| (void) | + exposeBinding: |
| (IMP) | + instanceMethodForSelector: |
| (BOOL) | + instancesImplementSelector: |
| (BOOL) | + instancesRespondToSelector: |
| (BOOL) | + isBindingExclusive: |
| (BOOL) | + isSubclassOfClass: |
| (CPSet) | + keyPathsForValuesAffectingValueForKey: |
| (void) | + load |
| (id) | + new |
| (void) | + object:performSelector:withObject:afterDelay:inModes: |
| (void) | + setVersion: |
| (Class) | + superclass |
| (int) | + version |
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.
| 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. |
nil to abort the unarchiving operation-(id)unarchiver:(CPKeyedUnarchiver)unarchiver didDecodeObject:(id)object; Called when the unarchiver decodes an object.
| unarchiver | the unarchiver doing the decoding |
| object | the decoded object |
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:.
| 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.
| unarchiver | the unarchiver that's about to finish |
-(void)unarchiverDidFinish:(CPKeyedUnarchiver)unarchiver; Called when the unarchiver has finished decoding.
| unarchiver | the unarchiver that finished decoding |
Definition at line 2 of file CPKeyedUnarchiver.h.
|
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 429 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 424 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 196 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 232 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 356 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 254 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 242 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 266 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 323 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 278 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 293 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 308 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 387 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 375 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 139 of file CPKeyedUnarchiver.j.
|
implementation |
Reimplemented from CPObject.
Definition at line 119 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 419 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 396 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 162 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 181 of file CPKeyedUnarchiver.j.
|
implementation |
Definition at line 188 of file CPKeyedUnarchiver.j.