On Jul 5, 2009, at 8:23 AM, Michael Ash wrote:

It's the same benefit as anywhere else. You have two places,
viewDidUnload and dealloc, which perform the exact same action.

They do not perform the "exact same action".
In dealloc, you obviously relinquish ownership of all objects you own (and perhaps other resources). In viewDidUnload, you relinquish ownership of only those items that you can recreate later, if the view is loaded again. You typically do not, for example, relinquish ownership of any model objects.

I *personally* suspect I'd find it easier to do a straightforward pass of each method to ensure they're correct rather than having to remember to create/update/check some other non-standard method each time I change the properties. YMMV.

mmalc

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to