Hi Ben,

I already had a workaround to subscribe to a morph's event:

treeModel announcer�
on: WidgetBuilt�
do: [ :builtAnnouncement |
builtAnnouncement widget�
when: #aboutToToggleExpandedState�
send: #aboutToToggleExpandedState:�
to: self ]

So I migrated it to:

treeModel whenBuiltDo: [ :builtAnnouncement |
builtAnnouncement widget widget
when: #aboutToToggleExpandedState�
send: #aboutToToggleExpandedState:�
to: self ]

but... how should I really fix it?

Mart�n



On Fri, Oct 4, 2013 at 2:35 PM, Benjamin <Benjamin.VanRyseghem.Pharo@gmail.com> wrote:
For Spec users:

The change is mostly backward compatible :)
2 things really changed:
- direct access to a model's widget is not returning what it used to return. This is done on purpose since�
it's very often a bad idea to directly access the widget.
- some behaviour on trees are now only available after the tree build. This is because some properties�
have been moved on the adapter directly, which is reachable only after the model build.
You can use `whenBuiltDo:` to add post-build actions.

Enjoy this new Spec :P

Ben

On Oct 4, 2013, at 2:31 PM, Marcus Denker <marcus.denker@inria.fr> wrote:

30448
-----

11740 Remove Morphic dependency from Spec
https://pharo.fogbugz.com/f/cases/11740

A Huge change from Ben...

Diff information:
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Tools-MarcusDenker.1292.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Tabs-MarcusDenker.33.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Widgets-MarcusDenker.265.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Tools-MarcusDenker.150.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Tests-MarcusDenker.35.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-MorphicAdapters-MarcusDenker.9.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-PolyWidgets-MarcusDenker.7.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Layout-MarcusDenker.58.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Inspector-MarcusDenker.102.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Examples-MarcusDenker.48.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Debugger-MarcusDenker.163.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Core-MarcusDenker.175.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Builder-MarcusDenker.43.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Bindings-MarcusDenker.35.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/NautilusRefactoring-MarcusDenker.126.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Adapters-MarcusDenker.3.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Manifest-CriticBrowser-MarcusDenker.124.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Keymapping-Tools-Spec-MarcusDenker.19.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/KeyChain-MarcusDenker.58.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/HudsonBuildTools20-MarcusDenker.45.diff