00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 @import "CPObject.j"
00024 @import "CPException.j"
00025
00026
00031 @implementation CPCoder : CPObject
00032 {
00033
00034 }
00035
00040 -(BOOL)allowsKeyedCoding
00041 {
00042 return NO;
00043 }
00044
00052 -(void)encodeValueOfObjCType:(CPString)aType at:(id)anObject
00053 {
00054 CPInvalidAbstractInvocation();
00055 }
00056
00061 -(void)encodeDataObject:(CPData)aData
00062 {
00063 CPInvalidAbstractInvocation();
00064 }
00065
00070 -(void)encodeObject:(id)anObject
00071 {
00072
00073 }
00074
00079 - (void)encodePoint:(CPPoint)aPoint
00080 {
00081 [self encodeNumber:aPoint.x];
00082 [self encodeNumber:aPoint.y];
00083 }
00084
00089 - (void)encodeRect:(CGRect)aRect
00090 {
00091 [self encodePoint:aRect.origin];
00092 [self encodeSize:aRect.size];
00093 }
00094
00099 - (void)encodeSize:(CPSize)aSize
00100 {
00101 [self encodeNumber:aSize.width];
00102 [self encodeNumber:aSize.height];
00103 }
00104
00109 -(void)encodePropertyList:(id)aPropertyList
00110 {
00111
00112 }
00113
00118 -(void)encodeRootObject:(id)anObject
00119 {
00120 [self encodeObject:anObject];
00121 }
00122
00127 -(void)encodeBycopyObject:(id)anObject
00128 {
00129 [self encodeObject:object];
00130 }
00131
00136 -(void)encodeConditionalObject:(id)anObject
00137 {
00138 [self encodeObject:object];
00139 }
00140
00141 @end
00142
00143 @implementation CPObject (CPCoding)
00144
00151 - (id)awakeAfterUsingCoder:(CPCoder)aDecoder
00152 {
00153 return self;
00154 }
00155
00156 @end