Eric wrote:
if i don't inherit from nsIObserver ,then i don't know if there is another
way to implement this ? (I already used the callbacks ,which is too
unconvenient ,because everytime you want to add a new callback you have to
modify your codes ,so i switched to nsIObserver )
Your component can implement multiple independent interfaces:
class MyComponent : public nsIObserver, public IMyComponent
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIOBSERVER
NS_DECL_IMYCOMPONENT
};
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom