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: Hamish Allan <email@hidden>
- Date: Mon, 28 Nov 2005 20:32:11 +0000
On Mon, 28 Nov 2005 19:35:13 +0100, David Gimeno Gost
<email@hidden> wrote:
[snipped a lot of comments based on wrong assumptions and
misunderstandings of what I've been saying in this thread.]
With respect, I've been casually trying to follow this thread and I
can barely tell who favours which solution any more.
Perhaps if you write down a quick summary detailing the differences
between different approaches and what the pros and cons are of each,
you might find that everyone is actually in agreement?!
FWIW, if you write singletons the Cocoa way, but provide some sort of
method "releaseSingletonForPerformanceReasons" which would do that
and set the static variable to nil again, would that be acceptable?
Best wishes,
Hamish
_______________________________________________
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