An object representing a dynamic, unordered, uniquing collection, for use instead of a
Set variable in cases that require reference semantics.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
NSMutable class declares the programmatic interface to a mutable, unordered collection of distinct objects.
NSCounted class, which is a concrete subclass of
NSMutable, supports mutable sets that can contain multiple instances of the same element. The
NSSet class supports creating and managing immutable sets.
There should be little need of subclassing. If you need to customize behavior, it is often better to consider composition instead of subclassing.