Alec Flett wrote:

> 
> 
> [EMAIL PROTECTED] wrote:
> 
>> Christian Biesinger wrote:
>>
>>> David Einstein wrote:
>>>
>>>> Is there a way of dicovering all of the classes that implement an 
>>>> XPCOM interface?
>>>
> 
>  >
> 
>> Well, yes.
>> What about at runtime?
>> The application that I am looking at is the spell checker.  It would 
>> be nice if multiple spell checking engines could coexist and the user 
>> could choose the one most appropriate.
> 
> 
> 
> This is usually done by each concrete class adding itself to a category 
> (with nsICategoryManager) or by registering with a parameterized 
> ContractIDs - by composing a ContractID string based on a set of values. 
> It really depends on usage, but generally if one wants to enumerate 
> members of a group of objects, then Categories are used.
> 

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?

If so - cool.

        Rhank you again.

>>     Deinst
>>
> 



Reply via email to