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
00033 @implementation CPCoder : CPObject
00034 {
00035
00036 }
00037
00042 -(BOOL)allowsKeyedCoding
00043 {
00044 return NO;
00045 }
00046
00054 -(void)encodeValueOfObjCType:(CPString)aType at:(id)anObject
00055 {
00056 CPInvalidAbstractInvocation();
00057 }
00058
00063 -(void)encodeDataObject:(CPData)aData
00064 {
00065 CPInvalidAbstractInvocation();
00066 }
00067
00072 -(void)encodeObject:(id)anObject
00073 {
00074
00075 }
00076
00081 - (void)encodePoint:(CPPoint)aPoint
00082 {
00083 [self encodeNumber:aPoint.x];
00084 [self encodeNumber:aPoint.y];
00085 }
00086
00091 - (void)encodeRect:(CGRect)aRect
00092 {
00093 [self encodePoint:aRect.origin];
00094 [self encodeSize:aRect.size];
00095 }
00096
00101 - (void)encodeSize:(CPSize)aSize
00102 {
00103 [self encodeNumber:aSize.width];
00104 [self encodeNumber:aSize.height];
00105 }
00106
00111 -(void)encodePropertyList:(id)aPropertyList
00112 {
00113
00114 }
00115
00120 -(void)encodeRootObject:(id)anObject
00121 {
00122 [self encodeObject:anObject];
00123 }
00124
00129 -(void)encodeBycopyObject:(id)anObject
00130 {
00131 [self encodeObject:object];
00132 }
00133
00138 -(void)encodeConditionalObject:(id)anObject
00139 {
00140 [self encodeObject:object];
00141 }
00142
00143 @end
00144
00145 @implementation CPObject (CPCoding)
00146
00153 - (id)awakeAfterUsingCoder:(CPCoder)aDecoder
00154 {
00155 return self;
00156 }
00157
00158 @end