Re: dealloc and scarce resources
Re: dealloc and scarce resources
- Subject: Re: dealloc and scarce resources
- From: James Merkel <email@hidden>
- Date: Thu, 30 Jun 2011 18:49:33 -0700
On Jun 30, 2011, at 6:39 PM, Kyle Sluder wrote:
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
Ok, doing the -close first makes more sense.
_______________________________________________
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