Re: Bundle loading
Re: Bundle loading
- Subject: Re: Bundle loading
- From: Chris Ridd <email@hidden>
- Date: Thu, 22 Aug 2002 16:17:43 +0100
On 22/8/02 1:41 pm, Marco Scheurer <email@hidden> wrote:
>
On Thursday, August 22, 2002, at 02:03 pm, Chris Ridd wrote:
>
>
> 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.
>
>
Look for + (void) load in NSObject, and be careful.
Ooh, interesting. What do I need to be wary of apart from the
caveats/warnings in the Foundation documentation?
I also note that according to the Mach-O Runtime Architecture document,
there're are __mod_init_func and __mod_term_func names in the __DATA
segment, which might prove useful.
Cheers,
Chris
_______________________________________________
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.