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: Scott Anguish <email@hidden>
- Date: Thu, 1 Dec 2005 15:51:28 -0500
On Dec 1, 2005, at 12:46 PM, David Gimeno Gost wrote:
BTW, sending [sharedInstance release] from within a singleton's
class method, or [self release] from within a singleton's instance
method, _might_ be correct (since sharedInstance was obtained
through alloc/init).
well, technically no, since singletons are supposed to persist
throughout the lifetime of an application.
but that is going to cause a circular argument here, and my head
will explode as a result.
_______________________________________________
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