Re: Bundle loading
Re: Bundle loading
- Subject: Re: Bundle loading
- From: Pierre-Olivier Latour <email@hidden>
- Date: Thu, 22 Aug 2002 14:22:57 +0200
>
Does loading a bundle in cause any code to get executed in the bundle
>
automatically, or any other kind of automatic initialization?
>
>
Basically if I write a bundle, how do I make sure that some kind of
>
initialization that I may require happens?
>
>
The docs are pretty unclear on this, as they seem to be mostly written from
>
the point of view of the code loading the bundle in.
I suppose you intend to put Obj-c classes inside this bundle. Then, you can
use the +initialize method of the class. Is it called only once, not when
the code is loaded, but before any method of the class gets called.
As far as I know, Mach-o libraries do not define an initialization routine
and a termination routine, contrary to CFM libraries.
_____________________________________________________________
Pierre-Olivier Latour email@hidden
Lausanne, Switzerland
http://www.pol-online.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.