git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3555 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-01-11 17:28:51 +00:00
parent 19b8cf05de
commit 29132b8bad
5 changed files with 38 additions and 7 deletions

View file

@ -85,7 +85,9 @@ static Class NSMutableArray_concrete_class;
+ allocWithZone: (NSZone*)z
{
return NSAllocateObject ([self _concreteClass], 0, z);
if ([self class] == [NSArray class])
return NSAllocateObject ([self _concreteClass], 0, z);
return [super allocWithZone: z];
}
+ array
@ -707,7 +709,9 @@ static NSString *indentStrings[] = {
+ allocWithZone: (NSZone*)z
{
return NSAllocateObject ([self _mutableConcreteClass], 0, z);
if ([self class] == [NSMutableArray class])
return NSAllocateObject ([self _mutableConcreteClass], 0, z);
return [super allocWithZone: z];
}
/* This is the desgnated initializer for NSMutableArray */