[BUG - Morphic] Creating a new SystemWindowWithButton

Dan Ingalls Dan.Ingalls at disney.com
Wed Apr 28 22:50:02 UTC 1999


>I just tried to create a new SystemWindowWithButton from the Morphic "Add a
>New Morph" menu (under "Windows") and got the following walkback:
>"UndefinedObjects are not indexable".
>
>My Platform:  Win NT 4.0, SP 3 running a baseline Squeak 2.4 w/ all of the
>updates (up to 1155)
>
>Analysis:  A quick look at the walkback seems to indicate that the
>SystemWindowWithButton label is nil and something is asking nil for its
>size.
>
>This is probably due to the recent size method changes.

Chris -

Yes -- a bug that was masked by allowing nil to respond to size.

The fix is to add, eg, 

	labelString := 'Untitled Window'.

early in the method SystemWindow>>initialize.

I'll put this out with the next set of updates.

	- Dan





More information about the Squeak-dev mailing list