MonobjcMonobjc Documented Class Library
ArrayWithCapacity Method (numItems)
NamespacesMonobjc.FoundationNSMutableArrayArrayWithCapacity(NSUInteger)

Creates and returns an NSMutableArray object with enough allocated memory to initially hold a given number of objects.

Original signature is '+ (id)arrayWithCapacity:(NSUInteger)numItems'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSMutableArray ArrayWithCapacity(
	NSUInteger numItems
)
Public Shared Function ArrayWithCapacity ( _
	numItems As NSUInteger _
) As NSMutableArray
public:
static NSMutableArray^ ArrayWithCapacity(
	NSUInteger numItems
)
Parameters
numItems (NSUInteger)
The initial capacity of the new array.
Return Value
A new NSMutableArray object with enough allocated memory to hold numItems objects.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)