• 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: Bundle loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Bundle loading
      • From: Marco Scheurer <email@hidden>
References: 
 >Re: Bundle loading (From: Marco Scheurer <email@hidden>)

  • Prev by Date: Re: Equivalent to the fscanf() C function in Cocoa?
  • Next by Date: Re: Equivalent to the fscanf() C function in Cocoa?
  • Previous by thread: Re: Bundle loading
  • Next by thread: Re: Bundle loading
  • Index(es):
    • Date
    • Thread