• 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: dealloc and scarce resources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dealloc and scarce resources


  • Subject: Re: dealloc and scarce resources
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 30 Jun 2011 12:04:05 -0700

On Thu, Jun 30, 2011 at 9:20 AM, James Merkel <email@hidden> wrote:
> After a fair amount of application warm-up the FD
> shows 25 to 26. So, I assume I'm ok.

And what happens when (not if) you introduce a leak, and these objects
live longer than you expect them to? Or worse, someone else starts
holding on to these objects?

You're already using an -invalidate method. You just happened to call
it -dealloc. Why not follow good defensive programming practice and
make it explicit to save yourself future headaches?

--Kyle Sluder
_______________________________________________

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: dealloc and scarce resources
      • From: James Merkel <email@hidden>
References: 
 >dealloc and scarce resources (From: James Merkel <email@hidden>)
 >Re: dealloc and scarce resources (From: Quincey Morris <email@hidden>)
 >Re: dealloc and scarce resources (From: James Merkel <email@hidden>)
 >Re: dealloc and scarce resources (From: Kyle Sluder <email@hidden>)
 >Re: dealloc and scarce resources (From: James Merkel <email@hidden>)
 >Re: dealloc and scarce resources (From: Jean-Daniel Dupas <email@hidden>)
 >Re: dealloc and scarce resources (From: Ken Thomases <email@hidden>)
 >Re: dealloc and scarce resources (From: James Merkel <email@hidden>)

  • Prev by Date: Re: [Q] Will the be any problem in implementing an NSArray method using fast enumeration?
  • Next by Date: Re: dealloc and scarce resources
  • Previous by thread: Re: dealloc and scarce resources
  • Next by thread: Re: dealloc and scarce resources
  • Index(es):
    • Date
    • Thread