How to open SketchEditorMorph
Ned Konz
ned at bike-nomad.com
Sun Nov 9 15:51:30 UTC 2003
On Sunday 09 November 2003 4:56 am, ducasse wrote:
> Hi
>
> when we do SketchEditorMorph new openInWorld and we click on it to get
> the halos, it breaks!
> Looking at the references we can learn that:
> - Morph refers to its subclasses ;( in particular SketchEditorMorph
> - there is no complete creation interface for SketchEditorMorph
> apparently clients
> PasteUpMorph, GraphicalDictionaryMenu....are doing the business to
> instantiate it well.
> So this is again a problem.
>
> Ruin my happiness today....
Stef, no reason to be unhappy over this!
SketchEditorMorph is not meant to be instantiated by itself. It's only a
transient (modal) UI widget.
The false return from #includeInNewMorphMenu is there to prevent people
getting to it that way. This is similar to (say) AtomMorph.
Instead you would have a SketchMorph and tell it to edit:
(SketchMorph withForm: (Form extent: 100 at 100 depth: Display depth))
openInWorld; editDrawing
But I do agree that the SketchMorph/SketchEditorMorph stuff needs to be
cleaned up and reorganized.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|