MonobjcMonobjc Documented Class Library
InitWithCapacity Method (numItems)
NamespacesMonobjc.FoundationNSMutableArrayInitWithCapacity(NSUInteger)

Returns an array, initialized with enough memory to initially hold a given number of objects.

Original signature is '- (id)initWithCapacity:(NSUInteger)numItems'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithCapacity(
	NSUInteger numItems
)
Public Overridable Function InitWithCapacity ( _
	numItems As NSUInteger _
) As Id
public:
virtual Id^ InitWithCapacity(
	NSUInteger numItems
)
Parameters
numItems (NSUInteger)
The initial capacity of the new array.
Return Value
An array initialized with enough memory to hold numItems objects. The returned object might be different than the original receiver.
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)