Re: Automagic instantiation of singletons? (Christian Brunschen)
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