API  1.0.0
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) - encodeValueOfObjJType: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:
 
(void) - performSelector:withObject:afterDelay:
 
(void) - performSelector:withObject:afterDelay:inModes:
 
(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:
 
(void) + cancelPreviousPerformRequestsWithTarget:
 
(void) + cancelPreviousPerformRequestsWithTarget:selector:object:
 
(Class) + class
 
(BOOL) + conformsToProtocol:
 
(void) + exposeBinding:
 
(void) + initialize
 
(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
 

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

◆ allowsKeyedCoding()

- (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 42 of file CPCoder.j.

◆ encodeBycopyObject:()

- (void) encodeBycopyObject: (id)  anObject
implementation

Encodes an object.

Parameters
anObjectthe object to be encoded.

Definition at line 126 of file CPCoder.j.

◆ encodeConditionalObject:()

- (void) encodeConditionalObject: (id)  anObject
implementation

Encodes an object.

Parameters
anObjectthe object to be encoded.

Definition at line 135 of file CPCoder.j.

◆ encodeDataObject:()

- (void) encodeDataObject: (CPData aData
implementation

Encodes a data object. Subclasses must override this method.

Parameters
aDatathe object to be encoded.

Definition at line 63 of file CPCoder.j.

◆ encodeObject:()

- (void) encodeObject: (id)  anObject
implementation

Encodes an object. Subclasses must override this method.

Parameters
anObjectthe object to be encoded

Definition at line 72 of file CPCoder.j.

◆ encodePoint:()

- (void) encodePoint: (CGPoint)  aPoint
implementation

Encodes a point

Parameters
aPointthe point to be encoded.

Definition at line 81 of file CPCoder.j.

◆ encodePropertyList:()

- (void) encodePropertyList: (id)  aPropertyList
implementation

Encodes a property list. Not yet implemented.

Parameters
aPropertyListthe property list to be encoded

Definition at line 108 of file CPCoder.j.

◆ encodeRect:()

- (void) encodeRect: (CGRect)  aRect
implementation

Encodes a CGRect

Parameters
aRectthe rectangle to be encoded.

Definition at line 90 of file CPCoder.j.

◆ encodeRootObject:()

- (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 117 of file CPCoder.j.

◆ encodeSize:()

- (void) encodeSize: (CGSize)  aSize
implementation

Encodes a CGSize

Parameters
aSizethe size to be encoded

Definition at line 99 of file CPCoder.j.

◆ encodeValueOfObjJType:at:()

- (void) encodeValueOfObjJType: (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 54 of file CPCoder.j.


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