Objective-C: Associative Object Behavior

Is there OBJC_ASSOCIATION_RETAIN_NONATOMIC Associative behavior of objects in the Objective-C Runtime Reference , call release on the old value referenced by the linked object before it assigns and stores the new value?

+4
source share
1 answer

Yes. If you use the save or copy behavior when matching a value, then that value will be released when either the new value is associated (regardless of the behavior associated with the new value) or the object itself is freed.

+5
source

All Articles