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
00035 @implementation CPCoder : CPObject
00036 {
00037
00038 }
00039
00044 -(BOOL)allowsKeyedCoding
00045 {
00046 return NO;
00047 }
00048
00056 -(void)encodeValueOfObjCType:(CPString)aType at:(id)anObject
00057 {
00058 CPInvalidAbstractInvocation();
00059 }
00060
00065 -(void)encodeDataObject:(CPData)aData
00066 {
00067 CPInvalidAbstractInvocation();
00068 }
00069
00074 -(void)encodeObject:(id)anObject
00075 {
00076
00077 }
00078
00083 - (void)encodePoint:(CPPoint)aPoint
00084 {
00085 [self encodeNumber:aPoint.x];
00086 [self encodeNumber:aPoint.y];
00087 }
00088
00093 - (void)encodeRect:(CGRect)aRect
00094 {
00095 [self encodePoint:aRect.origin];
00096 [self encodeSize:aRect.size];
00097 }
00098
00103 - (void)encodeSize:(CPSize)aSize
00104 {
00105 [self encodeNumber:aSize.width];
00106 [self encodeNumber:aSize.height];
00107 }
00108
00113 -(void)encodePropertyList:(id)aPropertyList
00114 {
00115
00116 }
00117
00122 -(void)encodeRootObject:(id)anObject
00123 {
00124 [self encodeObject:anObject];
00125 }
00126
00131 -(void)encodeBycopyObject:(id)anObject
00132 {
00133 [self encodeObject:object];
00134 }
00135
00140 -(void)encodeConditionalObject:(id)anObject
00141 {
00142 [self encodeObject:object];
00143 }
00144
00145 @end
00146
00147 @implementation CPObject (CPCoding)
00148
00155 - (id)awakeAfterUsingCoder:(CPCoder)aDecoder
00156 {
00157 return self;
00158 }
00159
00160 @end