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?
Asked
Active
Viewed 460 times
4

The iOSDev
- 5,237
- 7
- 41
- 78

ma11hew28
- 121,420
- 116
- 450
- 651
1 Answers
5
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.

Lily Ballard
- 182,031
- 33
- 381
- 347