Understanding a basic objC thing?

Yes and no, release does not work like C++ delete for example, it does not delete the object and clean its memory, but only decrease its reference count. If another object is holding onto it, then it won't get deallocated until that other object has also called release on it.

If you need to keep the B instance until its end, you must retain it in A object until the end of your A instance. In your case the retain count of B is 0 after you release it, so it is deallocated.

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