Contents

withCapacity

Creates and initializes an empty OSSet.

Declaration

static OSSet * withCapacity(
 unsigned intcapacity);

Parameters

  • capacity:

    The initial storage capacity of the new set object.

Return Value

An empty instance of OSSet with a retain count of 1; NULL on failure.

Overview

capacity must be nonzero. The new OSSet will grow as needed to accommodate more key/object pairs (unlikeCFMutableSet, for which the initial capacity is a hard limit).

See Also

Miscellaneous