Question about convention


I see on page 185, and elsewhere in the book, that make comments like “…there is no dealloc method because [object] will last the life of the application”. Is this a convention that professionals use? I would assume that the best practice would be to always write your objects to clean up after themselves cause you never know where they will be used in the future.



Yes, although I imagine you will find a few who go ahead and write their dealloc methods. It is fairly rare to write a controller class and then later change its behavior drastically enough that it is only a temporary object. Professionals know whether or not a controller will be a permanent fixture of their app or a quick push on/pop off deal.