I have been playing around with and XPCOM with mixed success, right now I am struggling with the concept of dealing with an unknown. I understand that nsISupports is the generic interface to all, but I don't understand how to use this.


I have implemented nsIXmlRpcClient and understand how to use this, but when I implement my listener
.
onResult: function(client, obj, result) {}


I can handle my result if I now the type but how do I test result for what type of object it is?

I have tried:

if (  Components.classes['@mozilla.org/dictionary;1'].equals(result) )

but this doesn't work what am I doing wrong?





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

Reply via email to