On 15.09.2008, at 00:24, Marcus Denker wrote:
On 14.09.2008, at 16:19, Stéphane Ducasse wrote:
Hi
is there a way that I can trigger the recompilation of a class when
its superclass changes?
I tried
ComponentLikeModel subclasses
do: [:each | each superclass: ComponentLikeModel superclass]
but I did not get the recompilation.
no idea.. to tired. maybe use the ClassBuilder? I think it's there
precisely because
mutating class structure is so easy to get wrong...
Why not just do:
MorphicModel subclass: #ScrollPane
instanceVariableNames: 'scrollBar scroller retractableScrollBar
scrollBarOnLeft getMenuSelector getMenuTitleSelector scrollBarHidden
hasFocus hScrollBar'
classVariableNames: ''
poolDictionaries: ''
category: 'Morphic-Windows'
MorphicModel subclass: #TwoWayScrollPane
instanceVariableNames: 'getMenuSelector getMenuTitleSelector
xScrollBar yScrollBar scroller'
classVariableNames: ''
poolDictionaries: ''
category: 'MorphicExtras-Obsolete'
this then calls the ClassBuilder to do the migrations. works for me.
Marcus
--
Marcus Denker -- [EMAIL PROTECTED]
http://www.iam.unibe.ch/~denker
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project