I'm having a real pain trying to figure out why KVO is retaining all values that are being observed.
Scenario: I have an NSMutableArray with weak references. (Set up with CFArrayCreateMutable and Callback having NULL for both retain and release). Meaning any object added is never retained / released.
I have an NSArrayController observing values of the NSMutableArray.
But now, every object of the NSMutableArray is also retained. Why is this happening and how do I stop this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…