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

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 I got

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 14:37, b...@openinworld.com wrote: I don't want to unsubscribe #refresh in PhLTitledTreeModelinitialize. 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-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

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