[BUG][FIX] ComponentLayout

Helge Horch Helge.Horch at munich.netsurf.de
Sun Jan 23 15:54:56 UTC 2000


Folks,

ComponentLayout seems to have stopped working a while ago. One can still
create them, but drop a couple of Components on them and it won't be much
fun. No pins, no gain.

Problem seems to be that the model of the ComponentLayout is still nil
after coming into the current world. Until recently (last May? October?),
the Component subclass that a CL needs was created as a side effect when
the PasteUpMorph was asked for its #model. This doesn't seem to happen
anymore, neither in vanilla 2.7 nor in 2.8a (as of update 1789).

I attached a tiny changeset to send #createCustomModel from #initialize.
That might not be the ultimate place (if create-on-demand was intended),
but it works for me.

Cheers,
Helge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ComponentsFix.2.cs
Type: application/octet-stream
Size: 255 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000123/005d729c/ComponentsFix.2.obj


More information about the Squeak-dev mailing list