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....
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Tools-MarcusDenker.150.di...
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Tests-MarcusDenker.35.dif...
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-MorphicAdapters-MarcusDen...
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-PolyWidgets-MarcusDenker....
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Layout-MarcusDenker.58.di...
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Inspector-MarcusDenker.10...
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Examples-MarcusDenker.48....
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Debugger-MarcusDenker.163...
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Core-MarcusDenker.175.dif...
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Builder-MarcusDenker.43.d...
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Bindings-MarcusDenker.35....
http://smalltalkhub.com/mc/Pharo/Pharo30/main/NautilusRefactoring-MarcusDenk...
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Spec-Adapters-MarcusDenker.3.d...
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Manifest-CriticBrowser-MarcusD...
http://smalltalkhub.com/mc/Pharo/Pharo30/main/Keymapping-Tools-Spec-MarcusDe... http://smalltalkhub.com/mc/Pharo/Pharo30/main/KeyChain-MarcusDenker.58.diff
http://smalltalkhub.com/mc/Pharo/Pharo30/main/HudsonBuildTools20-MarcusDenke...