Recently I had to create an XPCOM component in javascript. The interface had a function, parse, defined as below:
interface xxx: nsISupports {
...
void parse(in AString data, out AString info, out boolean success);
...
}
I intend to describe the implementation of functions with out parameters and their usage. Though it may be too obvious for experienced xpcom/xul programmers, I hope this might help newbies.
I did not find much help online. Thanks to the guys in mozilla #extdev, #xul irc channels. It would not have been easy if not for their (quick) responses.
MDC has an article on creating an XPCOM component. I will not get into any details of component creation here.