mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
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:
parent
b72d2fa3ee
commit
3eacd8cda9
1 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue