Eric wrote:
NS_IMPL_ISUPPORTS1(MyComponent, IMyComponent)
This should probably be NS_IMPL_ISUPPORTS2(MyComponent, IMyComponent, nsIObserver). Otherwise your component doesn't QI to nsIObserver.
Also, I strongly recommend NOT inheriting your own interfaces from interfaces you do not control. It causes problems later if mozilla.org creates an interface inheriting from nsIObserver and you want to implement both that and IMyComponent. There's no technical reason to have IMyComponent inherit from nsIObserver that I can see....
-Boris _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
