• 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: Simple dealloc question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple dealloc question


  • Subject: Re: Simple dealloc question
  • From: Robert Cerny <email@hidden>
  • Date: Mon, 15 Oct 2007 11:05:30 +0200


On 15.10.2007, at 10:32, Milo Bird wrote:

you're right, it's completely sufficient to release track object. However, setting it to nil helps tracking possible bugs in your code, because you will immediately see in the debugger that you are sending messages to nil object.

Yes, but in this case it's completely pointless, as dealloc is the last message this object will ever receive.


Milo

That's correct but only for this object. Application can be trying to send messages to this object forever. And setting nil will help to track it down.


Robert

_______________________________________________

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: Simple dealloc question
      • From: Milo Bird <email@hidden>
References: 
 >Simple dealloc question (From: Bob Ueland <email@hidden>)
 >Re: Simple dealloc question (From: Robert Cerny <email@hidden>)
 >Re: Simple dealloc question (From: Milo Bird <email@hidden>)

  • Prev by Date: Re:Simple dealloc question
  • Next by Date: Re: Simple dealloc question
  • Previous by thread: Re: Simple dealloc question
  • Next by thread: Re: Simple dealloc question
  • Index(es):
    • Date
    • Thread