On 23 Jan 2014, at 12:53, btc@openinworld.com wrote:
I gave this a try and indeed #whenBuiltDo: works from #initialize. However in PharoLauncher <Create Image> stopped updating the list. After a bit of a muddling around I found that I am prevented from registering the event "wherever I wanted", since the subscription does not go to theValueHolder but to the contents of theValueHolder.
That sounds strange :(
That is as far as I can push this for now. I have a working solution with previously proposed ComposableModel>>topWindowHolder and ComposableModel>>whenWindowClosed: so I will proceed with that. Any objections to pushing these into Pharo 3 at this late stage :) and I'll just make them extensions from PharoLauncher.
If you submit a slice, I will review it :) Note that you can also do it on top of the bleeding edge Spec[1] Ben [1]https://github.com/SpecForPharo/spec
cheers -ben
I tried to avoid calling in #windowHolder but would that preferred? Do you have another suggestion?
I was not talking about the name, more the implementation :P (but not more than #window :) )
btw, the 'window' i-var of ComposableModel seems like it should be 'windowHolder'
I think all the other variable should be name without holder at the end :)
Ben