Removing observers in post-ARC Cocoa?

Dealloc is not gone under ARC. The ivar-releasing and super-calling aspects are handled automatically, allowing you to omit it if that's all you were going to do, but you should still implement it for other things if it makes sense to do so.

Yep, iOS 5.0 documentation says "If you deallocate an object that is observing notifications, you need to tell the notification center to stop sending it notifications. " so -dealloc method will continue to be needed. – chuckSaldana Oct 19 at 21:04 @Catfish_Man Are you sure dealloc still gets called?

I made some tests and mine never gets called. – Fernando Oct 20 at 20:31 3 Yes, I'm sure. See clang.llvm.Org/docs/… – Catfish_Man Oct 20 at 23:21 But in the same place (clang.llvm.

Org/docs/…) I also read: "Rationale: even though ARC destroys instance variables automatically, there are still legitimate reasons to write a dealloc method, such as freeing non-retainable resources. Failing to call super dealloc in such a method is nearly always a bug." – Elise van Looij Nov 30 at 15:22.

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