(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
This commit is contained in:
mccallum 1995-05-05 15:50:26 +00:00
parent 9563478642
commit a7f669b6f1

View file

@ -30,6 +30,11 @@
@implementation NSArray @implementation NSArray
+ allocWithZone: (NSZone*)z
{
return [NSGArray allocWithZone:z];
}
+ array + array
{ {
return [[[NSGArray alloc] init] autorelease]; return [[[NSGArray alloc] init] autorelease];
@ -270,6 +275,11 @@
@implementation NSMutableArray: NSArray @implementation NSMutableArray: NSArray
+ allocWithZone: (NSZone*)z
{
return [NSGMutableArray allocWithZone:z];
}
+ arrayWithCapacity: (unsigned)numItems + arrayWithCapacity: (unsigned)numItems
{ {
return [[[[NSGMutableArray class] alloc] initWithCapacity:numItems] return [[[[NSGMutableArray class] alloc] initWithCapacity:numItems]