Added placeholders for old classes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8522 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2001-01-08 23:40:24 +00:00
parent b72d2fa3ee
commit 3eacd8cda9

View file

@ -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