When some of these codes:
objc_setAssociatedObject ( obj, &key, val, OBJC_ASSOCIATION_RETAIN );
I need to call related
objc_setAssociatedObject ( obj, &key, nil, OBJC_ASSOCIATION_RETAIN );
to free the stored value? Does Objective-C automatically distribute associative links in dealloc
or dealloc
?
cxa
source share