• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is Apple's singleton sample code correct?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Is Apple's singleton sample code correct? (From: David Gimeno Gost <email@hidden>)

  • Prev by Date: bind image to NSButtoncells in NSMatrix
  • Next by Date: Re: How to find a window under the cursor
  • Previous by thread: Re: Is Apple's singleton sample code correct?
  • Next by thread: RE: Is Apple's singleton sample code correct?
  • Index(es):
    • Date
    • Thread