NSMutableDictionary class declares the programmatic interface to objects that manage mutable associations of keys and values. It adds modification operations to the basic operations it inherits from
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 2.0+
Setting Values Using Subscripting
In addition to the provided instance methods, such as
setObject(_:forKey:), you can access
NSDictionary values by their keys using subscripting.
There should typically be little need to subclass
NSMutableDictionary. If you do need to customize behavior, it is often better to consider composition rather than subclassing.