• 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: Singleton ADC example - dealloc and assignment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Singleton ADC example - dealloc and assignment


  • Subject: Re: Singleton ADC example - dealloc and assignment
  • From: Jonathon Mah <email@hidden>
  • Date: Wed, 23 Jan 2008 20:51:12 +1030

s5804,

On 2008-01-23, at 20:38, email@hidden wrote:

What was your goal of asking "Did you even look for "sharedGizmoManager = "? " ?

I certainly had no intention of being rude, and I'm sorry what I wrote could be interpreted that way.


I was surprised at your statement, "Further I don't understand when the singletone holder point shall be assigned." Only a few lines down from the code you quoted is assignment with the comment, "// assignment and return on first allocation".

I agree that it's not obvious that +alloc itself calls +allocWithZone:, for reasons which are largely historical and obsolete.




Jonathon Mah email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Singleton ADC example - dealloc and assignment (From: email@hidden)
 >Re: Singleton ADC example - dealloc and assignment (From: Jonathon Mah <email@hidden>)
 >Re: Singleton ADC example - dealloc and assignment (From: email@hidden)

  • Prev by Date: Re: Singleton ADC example - dealloc and assignment
  • Next by Date: NSOutlineView problem
  • Previous by thread: Re: Singleton ADC example - dealloc and assignment
  • Next by thread: Re: Singleton ADC example - dealloc and assignment
  • Index(es):
    • Date
    • Thread