There's something I don't get in Apple documentation. Here's an extract from the -(void)viewDidUnload of the UIViewController class :
your dealloc method should release each object but should also set the reference to that object to nil before calling super.
If you use a retain and a synthetize for a xxx attribute in your code, why do most of Apple examples do a set-to-nil in viewDidUnload :
self.xxx = nil;
but recommands to do both a set-to-nil AND a release in the dealloc :
[xxx release];
self.xxx = nil;
Why is the set-to-nil not enough for the dealloc ?
ps : i know my question is very similar to this one "Why release a property that you've already set to nil?" but it's not strictly the same