Re: Calling -retain inside -dealloc
Re: Calling -retain inside -dealloc
- Subject: Re: Calling -retain inside -dealloc
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 26 Jun 2005 20:37:23 -0700
On Jun 26, 2005, at 6:51 PM, Andrew Garber wrote:
Is there any risk that when the retain count drops to zero the second
time, -dealloc will be called again, causing an endless loop?
When the retain count drops to 0, the object is dealloced.
If, for some reason, dealloc is called again, you'll get a runtime
error.
<http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/
index.html>
What you're trying to achieve?
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden