On Thu, 06 Sep 2001 03:45:57 -0400, Mike Shaver <[EMAIL PROTECTED]> wrote:
> Philip Langdale wrote:
>
> If your component doesn't ask for a persistent registration (pass false
> for the aPersist parameter to RegisterComponentWithType within your
> nsIModule::registerSelf implementation), we shouldn't write anything to
> the registry. And simply calling AutoRegisterComponent on such a
> non-persistent component shouldn't require write access to the registry[*].
Oooo. :-) We were using the nsIModule macro ( NS_IMPL_GETMODULE ) like the
core mozilla modules do. I assume that there's an implicit passing of aPersist
as PR_TRUE in there. Is there an easy way to pass PR_FALSE without sacrificing
the macro simplicity?
> [*] So much here is broken:
>
> - I think that the (auto-)registering caller, not the component,
> should decide if the registration operations have permanent effect; and
I certainly agree here, I was surprised to see that there was no aPersist
parameter passed to the auto calls.
Is is written anywhere what the Correct Way(tm) for an embedder to register
their components is?
--phil