Getting [NSObject description]s for objects holding circular references?

There could be a bigger problem at hand here, in that dictionaries retain their contents. If you're adding an object to a dictionary, it gets retained, and then if you're adding the containing dictionary to the "sub" dictionary, it retains its parent. This will probably result in a retain cycle and probably prevent any of the objects getting deallocated.

From "Cocoa Programming for Mac OS X" by Aaron llegass: If object X retains object Y, and Y retains X, the objects will never be deallocated. This situation is known as a retain cycle. A retain cycle can allow large islands of garbage to accumulate in your application's memory space.

Thanks for that note about retain cycles. I hadn't been alerted to that gotcha before. You've set me off on a reading binge to learn more.

– baudot Aug 17 '10 at 17:46.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions