> > >Now I understand that if nilling an instance variable after releasing > >it is done in -dealloc, it is papering over other memory management > >problems and is therefore bad programming practice. But I believe > >that this practice is OK in -didTurnIntoFault because, particularly > >when Undo is involved, -didTurnIntoFault may be invoked more than once > >on an object. Therefore nilling after releasing in -didTurnIntoFault > >is recommended. >
I've found that there's never any reason not to reset a variable after releasing it. IMO it's just good practice. _______________________________________________ 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