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: David Gimeno Gost <email@hidden>
- Date: Sat, 26 Nov 2005 22:44:48 +0100
j o a r <email@hidden> wrote:
* Why spend all that time on overriding retain / release, et.c.?
Well, the answer to this question and the question itself are exactly
the reasons this thread has been going on for so long. :-)
What I'm trying to demonstrate is precisely that all this overhead
comes from a too restrictive conception of what an implementation of
the singleton pattern should do, and that by not imposing any
unnecessary lifetime requirements to the singleton in the design of the
class one can come up with an implementation that can satisfy any
lifetime requirements without needing all those methods to be
overridden at all.
If you're not a framework developer, I would say that it's mostly a
complete waste of time.
Actually, I would go as far as to say that all this overhead is a waste
of time even if you're a framework developer.
Regards.
_______________________________________________
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