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 18:39:13 -0700
On Thu, Jun 30, 2011 at 6:34 PM, James Merkel <email@hidden> wrote:
> Then wherever I was sending the -release, I need to also send a separate
> -close. it could be before or after the release, it doesn't really matter.
No, it really needs to be before the -release. When you call -release,
you relinquish your ownership of that object. It may cease to exist at
that point. It may continue to live for an indeterminate amount of
time. But either way, yes, it's one method call, done before the call
to -release.
--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