• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why should we set ivars to nil in dealloc?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why should we set ivars to nil in dealloc?


  • Subject: Re: Why should we set ivars to nil in dealloc?
  • From: "stephen joseph butler" <email@hidden>
  • Date: Sun, 13 Apr 2008 14:36:32 -0500

On Sun, Apr 13, 2008 at 12:48 PM, Ferhat Ayaz <email@hidden> wrote:

> 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?


Usually it's not. For me, it's 100% a "best practices" thing. It never
hurts, so why not get into the habit of doing it?
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Why should we set ivars to nil in dealloc?
      • From: "Clark Cox" <email@hidden>
    • Re: Why should we set ivars to nil in dealloc?
      • From: j o a r <email@hidden>
References: 
 >NSTextField vertical sizeToFit (From: Jeff <email@hidden>)
 >Why should we set ivars to nil in dealloc? (From: Ferhat Ayaz <email@hidden>)

  • Prev by Date: Re: Why should we set ivars to nil in dealloc?
  • Next by Date: Re: Cocoa-dev Digest, Vol 5, Issue 600
  • Previous by thread: Re: Why should we set ivars to nil in dealloc?
  • Next by thread: Re: Why should we set ivars to nil in dealloc?
  • Index(es):
    • Date
    • Thread