Editing an UpdatingStringMorph

Jesse Welton jwelton at pacific.mps.ohio-state.edu
Sat May 19 12:09:38 UTC 2001


On Fri, 18 May 2001, Dan Ingalls wrote:
> 
> There are two solutions when this happens.  Either it's a situation
> where you have control of both the release and the install, or not.
> If it is, then you can save the prior editor, and then use
> "installEditorToReplace: priorEditor" for the install.  If it's not,
> then either you have to prevent the release (say, avoid losing
> control, or focus), or you have to save the selection state and
> restore it as is done in installEditorToReplace:.
> 
> There.  No fish today, but now you have a fishing pole.

And here's the fish.  It's small, but tasty: A tiny fix to save the
editor information in TextMorph>>extent:, which I believe was
responsible for losing this information when typing into TextMorphs in
dynamic layouts.  Thanks for the hint, Dan!

-Jesse

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TinyTextMorphFix-JW.cs.gz
Type: application/octet-stream
Size: 474 bytes
Desc: 
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010519/5eb76888/TinyTextMorphFix-JW.cs.obj


More information about the Squeak-dev mailing list