Re: dealloc and scarce resources
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