Re: Question about nsIComponentRegistrar

Doug Turner <[email protected]> Tue, 17 Dec 2002 09:53:28 -0800
Newsgroups gmane.comp.mozilla.devel.embedding,gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
jml wrote:
> Hi, new to mozilla, so newbie questions.
> 
> In nsIComponentRegistrar, there are methods as:
> 
> nsISimpleEnumerator enumerateContractIDs();
> 
> then on nsISimpleEnumerator, there is function to
> 
> nsISupports getNext();
> 
> My question is, what will be the type of the nsISupports get from 
> getNext().
> 
> Thanks
> 
> jml
> 


Looks like the comment got wacked or never completed:

      * Enumerate the list of all registered CIDs.
      *
      * @return : enumerator for CIDs.  This enumerator can be QI'ed for
      */

I will fix the comments today.

The contract id enumeration can be QI'ed for nsISupportsCString.  The 
cid enumeration can be QI'ed for a nsISupportsID.

Regards,

Doug Turner
[email protected]