git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8523 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2001-01-08 23:44:25 +00:00
parent 36f2a26be9
commit e0256e7ac3
2 changed files with 28 additions and 0 deletions

View file

@ -9,6 +9,8 @@
* Source/GSArray.m: simplified version of GSArray.m
Added GSPlaceholderArray.
* Source/NSSerializer.m: use GSInlineArray where possible.
* Source/GSSet.m: Provide decoding of NSGSet for backward compatibility.
* Source/NSException.m: Avoid recursion in exception handler.
2001-01-04 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -599,3 +599,29 @@ static Class mutableSetClass;
@end
@interface NSGSet : NSSet
@end
@implementation NSGSet
- (id) initWithCoder: (NSCoder*)aCoder
{
NSLog(@"Warning - decoding archive containing obsolete %@ object - please delete/replace this archive", NSStringFromClass([self class]));
RELEASE(self);
self = (id)NSAllocateObject([GSSet class], 0, NSDefaultMallocZone());
self = [self initWithCoder: aCoder];
return self;
}
@end
@interface NSGMutableSet : NSMutableSet
@end
@implementation NSGMutableSet
- (id) initWithCoder: (NSCoder*)aCoder
{
NSLog(@"Warning - decoding archive containing obsolete %@ object - please delete/replace this archive", NSStringFromClass([self class]));
RELEASE(self);
self = (id)NSAllocateObject([GSMutableSet class], 0, NSDefaultMallocZone());
self = [self initWithCoder: aCoder];
return self;
}
@end