On page 115 of the text (In “Lifecycle of a view controller”) one sees the revised methods of viewDidUnload and dealloc. In the first one, [super viewDidUnload] is called (which I believe in this case does nothing) BEFORE one does the local stuff. However in dealloc, [super dealloc] is the last line of the method.
In looking through the text, I detect the following:
- in init methods, send init to super first.
- in dealloc methods, send dealloc to super last.
(those both make sense to me)
- in all other cases, if you feel you need to send a message to super do it first (???)
Are these the general rules?