Re: Is Apple's singleton sample code correct?
Re: Is Apple's singleton sample code correct?
- Subject: Re: Is Apple's singleton sample code correct?
- From: Andreas Mayer <email@hidden>
- Date: Tue, 29 Nov 2005 23:58:58 +0100
Am 29.11.2005 um 22:58 Uhr schrieb David Gimeno Gost:
I'm not saying that everyone should use object deallocation to do
resource cleanup, I'm just saying that there is nothing wrong about
doing things that way,
It's wrong when you are using Cocoa because you can't be sure that
dealloc will be called at all.
Sending an additional release won't help since there might be other
objects that are still holding on to the object in question.
It's best to not fight the framework. To do so will make your life
miserable.
Andreas
_______________________________________________
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