Creates and returns an NSMutableData object capable of holding the specified number of bytes.
Original signature is '+ (id)dataWithCapacity:(NSUInteger)aNumItems'
Available in Mac OS X v10.0 and later.

C# | Visual Basic | Visual C++ |
public static Id DataWithCapacity( NSUInteger aNumItems )
Public Shared Function DataWithCapacity ( _ aNumItems As NSUInteger _ ) As Id
public: static Id^ DataWithCapacity( NSUInteger aNumItems )

- aNumItems (NSUInteger)
- The number of bytes the new data object can initially contain.

A new NSMutableData object capable of holding aNumItems bytes.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)