Re: RegisterFactory vs. RegisterFactoryLocation
Doug Turner <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpcom |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Christian Biesinger wrote: > Hello! > What exactly is the difference between RegisterFactory and > RegisterFactoryLocation? What does the latter do that the former doesn't? One registers an instance of a nsIFactory. The other registers a file location of a component. See nsIComponentRegistrar.idl. > Can I change existing code to use RegisterFactory instead of > RegisterFactoryLocation and will it still work? Depends on exactly what you are trying to do. Do you already have a nsIFactory? If so, converting to registerFactoryLocation() doesn't make too much sense.