Alec Flett wrote:
>>
>> 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..
Ok that makes sense.
Out of curiosity when do classes unregister themselves? Or is that
functionality just for symmetry and uninstall utilities?
I thank you for your help.
Deinst
--
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.
-- Benjamin Franklin