Not really, but here is my attempt at understanding you. You have service A and B, and they are implemented by the same class instantated different times. You want both A and B to exist for the duration of the application. Sound correct?

Yes, I think that is what I want.


Not really. Just have your components also implement nsIObserver and listen to the xpcom shutdown notification. Your objects will exist until the xpcom shuts down.

Thanks I am begining to get the picture, so how then do I get a handle to a particular instance say A or B. ie when it was a single service, I just used getService() and it was returned, now how do I now specify which instance to get (wanting to use it from somewhere other than where it was instantiated).


much appreciated

Carey
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to