mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
(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:
parent
afd4ae4eba
commit
3131b8564b
1 changed files with 10 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue