Re: [Pharo-dev] #windowIsClosing not sent to model of WindowModel

2014-01-23 Thread Benjamin
On 23 Jan 2014, at 12:53, b...@openinworld.com wrote: > I gave this a try and indeed #whenBuiltDo: works from #initialize. However > in PharoLauncher stopped updating the list. After a bit of a > muddling around I found that I am prevented from registering the event > "wherever I wanted", si

Re: [Pharo-dev] #windowIsClosing not sent to model of WindowModel

2014-01-23 Thread btc
Benjamin wrote: On 20 Jan 2014, at 14:37, b...@openinworld.com wrote: I don't want to unsubscribe #refresh in PhLTitledTreeModel>>initialize. I _really_ want to unsubscribe #refresh immediately after the subscribe #refresh is set up. But it does not prevent you to regis

Re: [Pharo-dev] #windowIsClosing not sent to model of WindowModel

2014-01-20 Thread Benjamin
On 20 Jan 2014, at 14:37, b...@openinworld.com wrote: > I don't want to unsubscribe #refresh in PhLTitledTreeModel>>initialize. > I _really_ want to unsubscribe #refresh immediately after the subscribe > #refresh is set up. But it does not prevent you to register to the event whenever you want :

Re: [Pharo-dev] #windowIsClosing not sent to model of WindowModel

2014-01-20 Thread btc
Benjamin wrote: On 20 Jan 2014, at 13:51, b...@openinworld.com wrote: When I try...     self whenBuiltDo: [ self halt. self window whenClosedDo: [ self halt. self repository unsubscribe: self ] ]. none of the halts occur. However I got what I needed with the following…

Re: [Pharo-dev] #windowIsClosing not sent to model of WindowModel

2014-01-20 Thread Benjamin
On 20 Jan 2014, at 13:51, b...@openinworld.com wrote: > Sure thing. That was part of my original intention. Cool :) Thanks > When I try... > self whenBuiltDo: [ self halt. self window whenClosedDo: [ self halt. > self repository unsubscribe: self ] ]. > none of the halts occur. > > However

Re: [Pharo-dev] #windowIsClosing not sent to model of WindowModel

2014-01-20 Thread btc
Benjamin wrote: Hi Ben, I've gave that a go and had some success, but it raised an architectural question I ask near the end. I've documented my investigation here in case it is of use to others new to Spec or the Spec documentation being developed. Spec documentation is a

Re: [Pharo-dev] #windowIsClosing not sent to model of WindowModel

2014-01-19 Thread Benjamin
> Hi Ben, > > I've gave that a go and had some success, but it raised an architectural > question I ask near the end. I've documented my investigation here in case > it is of use to others new to Spec or the Spec documentation being developed. Spec documentation is actually under heavy constr

Re: [Pharo-dev] #windowIsClosing not sent to model of WindowModel

2014-01-19 Thread btc
On 18 Jan 2014, at 12:09, b...@openinworld.com wrote: PharoLauncher is currently leaking AnnouncementSubscriptions when its window closes.  I'm not sure with Spec how to ensure actions are performed when the window is closed, but I have been able to achieve this with the following modific

Re: [Pharo-dev] #windowIsClosing not sent to model of WindowModel

2014-01-18 Thread btc
Thanks, I'll look into it. cheers -ben Benjamin wrote: I think i would be more elegant that the model register to the isClosedHolder changes :) Ben On 18 Jan 2014, at 12:09, b...@openinworld.com wrote: PharoLauncher is currently leaking AnnouncementSubscriptions when i

Re: [Pharo-dev] #windowIsClosing not sent to model of WindowModel

2014-01-18 Thread Benjamin
I think i would be more elegant that the model register to the isClosedHolder changes :) Ben On 18 Jan 2014, at 12:09, b...@openinworld.com wrote: > PharoLauncher is currently leaking AnnouncementSubscriptions when its window > closes. I'm not sure with Spec how to ensure actions are performe

[Pharo-dev] #windowIsClosing not sent to model of WindowModel

2014-01-18 Thread btc
PharoLauncher is currently leaking AnnouncementSubscriptions when its window closes. I'm not sure with Spec how to ensure actions are performed when the window is closed, but I have been able to achieve this with the following modification [1] which is... - WindowModel>>windowIsClosing