Does OBJC_ASSOCIATION_RETAIN_NONATOMIC of the Associative Object Behaviors in the Objective-C Runtime Reference, call release on the old value referenced by the associated object before it assigns & retains the new value?
Does OBJC_ASSOCIATION_RETAIN_NONATOMIC of the Associative Object Behaviors in the Objective-C Runtime Reference , call
Share
Yes. If you use the retain or copy behaviors when associating the value, then that value will be released when either a new value is associated (regardless of the behavior attached to the new value), or the object itself is deallocated.