On Jun 20, 2011, at 8:21 AM, Jeff Kelley wrote: > If you’re creating the web view in -viewDidLoad, you should probably release > it and nil the pointer to it in -viewDidUnload, not -dealloc.
You need to do both. You aren't guaranteed that your -viewDidUnload method will ever be called, so if you don't do it in -dealloc also, you can still have a case where you get a delegate callback, but have an incomplete UI (depending on what you are doing it may not crash, but you would then not see the results either). -- David Duncan _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
