Adds a value to a mutable bag.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The bag to which
A CFType object or a pointer value to add to
the(or the value itself, if it fits into the size of a pointer).
value parameter is retained by
the using the retain callback provided when
the was created. If
value is not of the type expected by the retain callback, the behavior is undefined. If
value already exists in the collection, it is simply retained again—no memory is allocated for the added value. Use a CFSet object if you don’t want duplicate values in your collection.