MonobjcMonobjc Documented Class Library
InitWithCapacity Method (capacity)

Returns an NSMutableString object initialized with initial storage for a given number of characters,

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithCapacity(
	NSUInteger capacity
Public Overridable Function InitWithCapacity ( _
	capacity As NSUInteger _
) As Id
virtual Id^ InitWithCapacity(
	NSUInteger capacity
capacity (NSUInteger)
The number of characters the string is expected to initially contain.
Return Value
An initialized NSMutableString object with initial storage for capacity characters. 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)