Re: How to add a new class as an input parameter in a idl file

[email protected]
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <c66bb453-8b76-4cc6-b7b3-ff517e73b488@e53g2000hsa.googlegroups.com>
On May 27, 7:19 pm, "Mike Shaver" <[email protected]> wrote:
> On Tue, May 27, 2008 at 6:49 PM,  <[email protected]> wrote:
> >  Error: methods in [scriptable] interfaces that are non-scriptable
> > because they refer to native types (parameter "myClass") must be
> > marked [noscript]
>
> > Can you please tell me how can I make the method non-scrpitable? I
> > look at this as well, I don't understand how to make the method non-
> > scriptable.
>
> You need to mark it with [noscript], as the error message tries to say.
>
> Help us improve this: what would have been clearer wording in that
> error message?  We worked hard on that one!
>
> Mike

Mike,
Thank you. I did read the message and I tried these:

  void setMyClass(in MyClassPtr [noscript] myclass);
  void setMyClass([noscript] in MyClassPtr myclass);
  void setMyClass(in [noscript] MyClassPtr myclass);

all doesnot work.

It turns out that this works:

[noscript] void setMyClass(in MyClassPtr myclass);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.