3 ms·
To me, that would be a problem with your code, not Objective C or anything within the Cocoa frameworks. I would personally say that if an object is retaining i
by Zev 17y ago
To me, that would be a problem with your code, not Objective C or anything within the Cocoa frameworks.
I would personally say that if an object is retaining its parent (or parent's parent, etc), there's something wrong with your design and you should step back to reconsider things.
Matt Gallagher put it much better than I can and I would recommend reading his post on it: http://cocoawithlove.com/2009/07/rules-to-avoid-retain-cycles.html http://cocoawithlove.com/2009/07/rules-to-avoid-retain-cycle...
- DenisM 17y agoAnd you call that kind of memory management "easy"? Looks quite contrived to me.