• 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: Automagic instantiation of singletons? (Christian Brunschen)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automagic instantiation of singletons? (Christian Brunschen)


  • Subject: Re: Automagic instantiation of singletons? (Christian Brunschen)
  • From: Theo Vosse <email@hidden>
  • Date: Wed, 23 Nov 2005 08:21:27 +0100

and although I don't know of a
guarantee that any interaction with NS classes will function at that
point, it should if the descriptions of +(void)initialize are
correct.

Really? When is the Objective-C runtime initialized and torn down?

I wouldn't know, but if +(void)initialize is called before any other message (as the documentation claims), sending any Objective-C message from a constructor of an object instantiated before main() should result in calling +(void)initialize. Consequently, this must initialize the necessary parts of the run-time system, or it must have been initialized before. If not, the documentation is incorrect (which is what I meant with: I don't know of a guarantee).


	Theo
_______________________________________________
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


  • Follow-Ups:
    • Re: Automagic instantiation of singletons? (Christian Brunschen)
      • From: Scott Ribe <email@hidden>
    • Re: Automagic instantiation of singletons?
      • From: Chris Hanson <email@hidden>
References: 
 >Re: Automagic instantiation of singletons? (Christian Brunschen) (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: Automagic instantiation of singletons? (Christian Brunschen)
  • Next by Date: Re: Crashing when using debug suffix on frameworks
  • Previous by thread: Re: Automagic instantiation of singletons? (Christian Brunschen)
  • Next by thread: Re: Automagic instantiation of singletons?
  • Index(es):
    • Date
    • Thread