On Mar 6, 11:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> I'm writing an app using XULRunner.  We have a set of C++-written
> components managing the "Model" part of "Model-View-Controller", and
> are using JS and XUL for the View and Controller part of the system.

> We have done a similar thing with DOM nodes, using "node.myProperty =
> foo()" and then however we access that particular DOM node, the
> myProperty property retains its value.
>
> When we try associating the data we want the same way with our model
> objects, we get "cannot modify properties of a wrappednative" errors.

I presume you haven't implemented nsIClassInfo or haven't set
nsIClassInfo.flags |= nsIClassInfo.DOM_OBJECT

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to