On Sun, Apr 13, 2008 at 6:48 PM, Ferhat Ayaz <[EMAIL PROTECTED]> wrote: > I see in some Apple's Cocoa examples that ivars are set to nil in the > dealloc method. The auto generated Core Data AppDelegate for new projects > is doing this for each ivar. Here is a simple example: > > - (void)dealloc { > [appointments release]; > appointments = nil; > [super dealloc]; > } > > why is it necessary to set the variable appointments (for instance) to nil > in this example? Should we do this for each variable? When have we to do > this?
IMO, it's totally unnecessary. Seems to be a cargo culting thing more than anything else. _______________________________________________ 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 [EMAIL PROTECTED]