Creates an immutable bag with the values of another bag.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate memory for the new bag and its storage for values. Pass
NULLor kCFAllocatorDefault to use the current default allocator.
The bag to copy. The pointer values from
theare copied into the new bag. However, the values are also retained by the new bag. The count of the new bag is the same as the count of
the. The new bag uses the same callbacks as
A new bag that contains the same values as
NULL if there was a problem creating the object. Ownership follows the The Create Rule.