No subject

From: ()
Date: Mon Dec 3 19:58:15 EST 2012

gather that I need to implement, set and register a custom snip-class%
object for my custom editor-snip.

Since I am not, at this stage, adding anything to editor-snip% I would like
to reuse the editor-snip% write method and the editor-snip-class% read
method. Since editor-snip-class% is a private class I do not understand how
I can extend it.

Is there a way to reuse the editor-snip-class% functionality without
cut-and-paste?

I notice that editor-snip-class% uses a private top-level var
"extended-editor-snip%" to hold the actual class of the snip that it
creates. Is there any way to leverage this ?

I hope that I missed something obvious - there is a lot of machinery in
WXME but nothing that makes this easy.


-- Nick

--047d7bd75160fd70c904e24913ea
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I created an extended editor-snip% class (also using the=
=A0graph-snip-mixin) and put an instance of this on a pasteboard% (altered =
via=A0graph-pasteboard-mixin) and then saved the pasteboard to a file.<div>=
<br></div>

<div>Reading this file back into the pasteboard fails (no visible errors ei=
ther). Doing the same with a non-extended editor-snip does work, so the onl=
y change is the extension class.</div><div><br></div><div>From documentatio=
n and looking at the source (in the mred collection) I gather that I need t=
o implement, set and register a custom snip-class% object for my custom edi=
tor-snip.</div>

<div><br></div><div>Since I am not, at this stage, adding anything to edito=
r-snip% I would like to reuse the editor-snip% write method and the=A0edito=
r-snip-class% read method. Since=A0editor-snip-class% is a private class I =
do not understand how I can extend it.</div>

<div><br></div><div>Is there a way to reuse the=A0editor-snip-class% functi=
onality without cut-and-paste?<br></div><div><br></div><div>I notice that e=
ditor-snip-class% uses a private top-level var &quot;extended-editor-snip%&=
quot; to hold the actual class of the snip that it creates. Is there any wa=
y to leverage this ?</div>

<div><br></div><div>I hope that I missed something obvious - there is a lot=
 of machinery in WXME but nothing that makes this easy.</div><div><br></div=
><div><div><br></div><div>-- Nick</div></div></div>

--047d7bd75160fd70c904e24913ea--

Posted on the users mailing list.