CPObjectCPCoder
@implementation CPCoder : CPObject
Top-level class defining methods for use when archiving (encoding) objects to a byte array or file, and when restoring (decoding) objects.
Method Summary | |
---|---|
-(BOOL) | allowsKeyedCoding Returns a flag indicating whether the receiver supports keyed coding. |
-(void) | encodeBycopyObject:(id)anObject Encodes an object. |
-(void) | encodeConditionalObject:(id)anObject Encodes an object. |
-(void) | encodeDataObject:(CPData)aData Encodes a data object. |
-(void) | encodeObject:(id)anObject Encodes an object. |
-(void) | encodePoint:(CPPoint)aPoint Encodes a point. |
-(void) | encodePropertyList:(id)aPropertyList Encodes a property list. |
-(void) | encodeRect:(CGRect)aRect Encodes a CGRect. |
-(void) | encodeRootObject:(id)anObject Encodes the root object of a group of Obj-J objects. |
-(void) | encodeSize:(CPSize)aSize Encodes a CGSize. |
-(void) | encodeValueOfObjCType:(CPString)aType at:(id)anObject Encodes a structure or object of a specified type. |
Method Detail |
---|
-(BOOL)allowsKeyedCoding
NO
. Subclasses supporting keyed coding must override this to return YES
.-(void)encodeBycopyObject:(id)anObject
anObject
- the object to be encoded.-(void)encodeConditionalObject:(id)anObject
anObject
- the object to be encoded.-(void)encodeDataObject:(CPData)aData
aData
- the object to be encoded.-(void)encodeObject:(id)anObject
anObject
- the object to be encoded-(void)encodePoint:(CPPoint)aPoint
aPoint
- the point to be encoded.-(void)encodePropertyList:(id)aPropertyList
aPropertyList
- the property list to be encoded-(void)encodeRect:(CGRect)aRect
aRect
- the rectangle to be encoded.-(void)encodeRootObject:(id)anObject
anObject
-(void)encodeSize:(CPSize)aSize
aSize
- the size to be encoded-(void)encodeValueOfObjCType:(CPString)aType at:(id)anObject
aType
- the structure or object typeanObject
- the object to be encodedCreated on Sat Sep 13 14:15:43 PDT 2008