diff --git a/Source/NSArray.m b/Source/NSArray.m index 93857fe49..0e63c74da 100644 --- a/Source/NSArray.m +++ b/Source/NSArray.m @@ -30,6 +30,11 @@ @implementation NSArray ++ allocWithZone: (NSZone*)z +{ + return [NSGArray allocWithZone:z]; +} + + array { return [[[NSGArray alloc] init] autorelease]; @@ -270,6 +275,11 @@ @implementation NSMutableArray: NSArray ++ allocWithZone: (NSZone*)z +{ + return [NSGMutableArray allocWithZone:z]; +} + + arrayWithCapacity: (unsigned)numItems { return [[[[NSGMutableArray class] alloc] initWithCapacity:numItems]