I have never been having a good understanding of how to properly implement #postCopy in your tool or model. When you duplicate a tool window via the halo, is it always expected that you just clone the view but it still refers to the same underlying object? Should we maybe clarify this in the method comment of Model >> #postCopy? :-)<br>
<br>
Best,<br>
Christoph<br>
<br>
<font color="#808080">---<br>
</font><i><font color="#808080">Sent from </font></i><i><u><a href="https://github.com/hpi-swa-lab/squeak-inbox-talk"><font color="#808080">Squeak Inbox Talk</font></a></u></i><br>
<br>
On 2021-08-23T22:10:26+00:00, commits@source.squeak.org wrote:<br>
<br>
> Chris Muller uploaded a new version of Morphic to project The Trunk:<br>
> http://source.squeak.org/trunk/Morphic-cmm.1778.mcz<br>
> <br>
> ==================== Summary ====================<br>
> <br>
> Name: Morphic-cmm.1778<br>
> Author: cmm<br>
> Time: 23 August 2021, 5:10:22.507528 pm<br>
> UUID: 17be2087-83c6-465d-9055-bb0c37b5ff62<br>
> Ancestors: Morphic-mt.1777<br>
> <br>
> Make cloning an Explorer window a UI operation only, don't clone the underlying domain object.<br>
> <br>
> =============== Diff against Morphic-mt.1777 ===============<br>
> <br>
> Item was changed:<br>
> Model subclass: #AbstractHierarchicalList<br>
> +     instanceVariableNames: 'currentSelection'<br>
> -     instanceVariableNames: 'currentSelection myBrowser'<br>
>     classVariableNames: ''<br>
>     poolDictionaries: ''<br>
>     category: 'Morphic-Explorer'!<br>
> <br>
> !AbstractHierarchicalList commentStamp: '<historical>' prior: 0!<br>
> Contributed by Bob Arning as part of the ObjectExplorer package.<br>
> !<br>
> <br>
> Item was added:<br>
> + ----- Method: AbstractHierarchicalList>>veryDeepInner: (in category 'copying') -----<br>
> + veryDeepInner: aDeepCopier<br>
> +     "This method required to avoid copying my 'currentSelection'. See Object>>#veryDeepCopyWith:."<br>
> +     super veryDeepInner: aDeepCopier!<br>
> <br>