[squeak-dev] Using SystemEditor (was: Re: Instance variable access
in superclasses.)
Andreas Raab
andreas.raab at gmx.de
Wed Nov 26 17:06:16 UTC 2008
Matthew Fulmer wrote:
> The syntax to do that is:
>
> ed := SystemEditor new.
> (ed at: #Morph) addInstVarName: #foo.
> ed commitWithProgress.
>
> Adding an instance variable to Morph used to work, but now it
> runs out of memory :P
This doesn't seem to work. If I do something a little simpler:
ed := SystemEditor new.
(ed at: #SimpleButtonMorph) addInstVarName: #foo.
ed commitWithProgress.
it completes but subinstances of SimpleButtonMorph are not correctly
migrated. Try inspecting foo in "IconicButton someInstance" or in
"UpdatingSimpleButtonMorph someInstance".
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|