> > Ok, I'm learning slowly. > The NSRegisterSelfProcPtr procedure of the ModuleComponentInfo gets > called at the time that the class is registered. Right? This translates > to Mozilla Startup in most cases. Correct? > Similar things are true of the NSUnregisterSelfProcProcedure and shutdown?
no! the NSRegisterSelfProc function gets called ONLY the first time mozilla starts when your dll is new or has changed. The registration happens just once. Unregistration happens if you dll is uninstalled (rare, if ever, but you should still clean up after any uses of NSRegisterSelfProc) That said, you'll see people registering with the category manager - the difference here is that the category manager persists across sessions - so it is only necessary to register yourself once with the category manager.. Alec
