Instance Method

init

Initializes a newly allocated set.

Declaration

- (instancetype)init;

Return Value

A set.

Discussion

This method is a designated initializer of NSSet.

See Also

Initializing a Set

- initWithArray:

Initializes a newly allocated set with the objects that are contained in a given array.

- initWithObjects:

Initializes a newly allocated set with members taken from the specified list of objects.

- initWithObjects:count:

Initializes a newly allocated set with a specified number of objects from a given C array of objects.

- initWithSet:

Initializes a newly allocated set and adds to it objects from another given set.

- initWithSet:copyItems:

Initializes a newly allocated set and adds to it members of another given set.