[plt-scheme] The missing drawing context

From: Jens Axel Soegaard (jensaxel at soegaard.net)
Date: Fri Mar 20 16:16:58 EDT 2009

Matthew Flatt wrote:

> To show a snip, DrScheme makes a copy of the snip, instead of inserting
> it directly. So, you'd need to override the editor-snip% `copy' and
> pasteboard% `copy-self' methods to re-instantiate your class.

That explains it.

So is it the "override copy" or the "create an editor-canvas" approach
to be preferred? (Hmm. I will probably need a lot of snips, so the
copy approach might use less memory)

/Jens Axel

Posted on the users mailing list.