• 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: 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.

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

  • Prev by Date: Bundle loading
  • Next by Date: Re: Pipes and Shell Commands
  • Previous by thread: Bundle loading
  • Next by thread: Re: Bundle loading
  • Index(es):
    • Date
    • Thread