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

Defines methods for use when archiving & restoring (enc/decoding). More...

#import <CPCoder.h>

+ Inheritance diagram for CPCoder:

Instance Methods

(BOOL) - allowsKeyedCoding
 
(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:
 

Additional Inherited Members

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

Detailed Description

Defines methods for use when archiving & restoring (enc/decoding).

Top-level class defining methods for use when archiving (encoding) objects to a byte array or file, and when restoring (decoding) objects.

Definition at line 2 of file CPCoder.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 in CPKeyedArchiver, and CPKeyedUnarchiver.

Definition at line 41 of file CPCoder.j.

- (void) encodeBycopyObject: (id)  anObject
implementation

Encodes an object.

Parameters
anObjectthe object to be encoded.

Definition at line 128 of file CPCoder.j.

- (void) encodeConditionalObject: (id)  anObject
implementation

Encodes an object.

Parameters
anObjectthe object to be encoded.

Definition at line 137 of file CPCoder.j.

- (void) encodeDataObject: (CPData aData
implementation

Encodes a data object. Subclasses must override this method.

Parameters
aDatathe object to be encoded.

Definition at line 62 of file CPCoder.j.

- (void) encodeObject: (id)  anObject
implementation

Encodes an object. Subclasses must override this method.

Parameters
anObjectthe object to be encoded

Definition at line 71 of file CPCoder.j.

- (void) encodePoint: (CPPoint)  aPoint
implementation

Encodes a point

Parameters
aPointthe point to be encoded.

Definition at line 80 of file CPCoder.j.

- (void) encodePropertyList: (id)  aPropertyList
implementation

Encodes a property list. Not yet implemented.

Parameters
aPropertyListthe property list to be encoded

Definition at line 110 of file CPCoder.j.

- (void) encodeRect: (CGRect)  aRect
implementation

Encodes a CGRect

Parameters
aRectthe rectangle to be encoded.

Definition at line 90 of file CPCoder.j.

- (void) encodeRootObject: (id)  anObject
implementation

Encodes the root object of a group of Obj-J objects.

Parameters
rootObjectthe root object to be encoded.

Definition at line 119 of file CPCoder.j.

- (void) encodeSize: (CPSize)  aSize
implementation

Encodes a CGSize

Parameters
aSizethe size to be encoded

Definition at line 100 of file CPCoder.j.

- (void) encodeValueOfObjCType: (CPString aType
at: (id)  anObject 
implementation

Encodes a structure or object of a specified type. Usually this is used for primitives though it can be used for objects as well. Subclasses must override this method.

Parameters
aTypethe structure or object type
anObjectthe object to be encoded

Definition at line 53 of file CPCoder.j.


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