From a7f669b6f1b922cd83042f78813c82fe8670a52e Mon Sep 17 00:00:00 2001 From: mccallum Date: Fri, 5 May 1995 15:50:26 +0000 Subject: [PATCH] (NSArray +allocWithZone:): Implemented. (NSMutableArray +allocWithZone:): Implemented. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@408 72102866-910b-0410-8b05-ffd578937521 --- Source/NSArray.m | 10 ++++++++++ 1 file changed, 10 insertions(+) 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]