diff --git a/Source/NSGCString.m b/Source/NSGCString.m index 5072855ac..da2ddac47 100644 --- a/Source/NSGCString.m +++ b/Source/NSGCString.m @@ -131,6 +131,16 @@ } } +- (Class) classForArchiver +{ + return [self class]; +} + +- (Class) classForCoder +{ + return [self class]; +} + - (Class) classForPortCoder { return [self class]; @@ -703,11 +713,21 @@ stringDecrementCountAndFillHoleAt(NSGMutableCStringStruct *self, * archive and readi it back, the new copy will never be deallocated - * causing a memory leak. So we tell the system to use the super class. */ +- (Class)classForArchiver +{ + return [self superclass]; +} + - (Class)classForCoder { return [self superclass]; } +- (Class)classForPortCoder +{ + return [self superclass]; +} + - (void)dealloc { }