From 3eacd8cda91ee2221e34a40ba7e69ee9abfebd53 Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 8 Jan 2001 23:40:24 +0000 Subject: [PATCH] Added placeholders for old classes git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8522 72102866-910b-0410-8b05-ffd578937521 --- Source/GSArray.m | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Source/GSArray.m b/Source/GSArray.m index 18a5fb3c5..cd22f3abf 100644 --- a/Source/GSArray.m +++ b/Source/GSArray.m @@ -928,3 +928,29 @@ static Class GSInlineArrayClass; } @end +@interface NSGArray : NSArray +@end +@implementation NSGArray +- (id) initWithCoder: (NSCoder*)aCoder +{ + NSLog(@"Warning - decoding archive containing obsolete %@ object - please delete/replace this archive", NSStringFromClass([self class])); + RELEASE(self); + self = (id)NSAllocateObject([GSArray class], 0, NSDefaultMallocZone()); + self = [self initWithCoder: aCoder]; + return self; +} +@end + +@interface NSGMutableArray : NSMutableArray +@end +@implementation NSGMutableArray +- (id) initWithCoder: (NSCoder*)aCoder +{ + NSLog(@"Warning - decoding archive containing obsolete %@ object - please delete/replace this archive", NSStringFromClass([self class])); + RELEASE(self); + self = (id)NSAllocateObject([GSMutableArray class], 0, NSDefaultMallocZone()); + self = [self initWithCoder: aCoder]; + return self; +} +@end +