[squeak-dev] The Trunk: Morphic-cmm.1778.mcz

christoph.thiede at student.hpi.uni-potsdam.de christoph.thiede at student.hpi.uni-potsdam.de
Mon Aug 30 09:46:17 UTC 2021


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? :-)

Best,
Christoph

---
Sent from Squeak Inbox Talk

On 2021-08-23T22:10:26+00:00, commits at source.squeak.org wrote:

> Chris Muller uploaded a new version of Morphic to project The Trunk:
> http://source.squeak.org/trunk/Morphic-cmm.1778.mcz
> 
> ==================== Summary ====================
> 
> Name: Morphic-cmm.1778
> Author: cmm
> Time: 23 August 2021, 5:10:22.507528 pm
> UUID: 17be2087-83c6-465d-9055-bb0c37b5ff62
> Ancestors: Morphic-mt.1777
> 
> Make cloning an Explorer window a UI operation only, don't clone the underlying domain object.
> 
> =============== Diff against Morphic-mt.1777 ===============
> 
> Item was changed:
> Model subclass: #AbstractHierarchicalList
> +     instanceVariableNames: 'currentSelection'
> -     instanceVariableNames: 'currentSelection myBrowser'
>     classVariableNames: ''
>     poolDictionaries: ''
>     category: 'Morphic-Explorer'!
> 
> !AbstractHierarchicalList commentStamp: '<historical>' prior: 0!
> Contributed by Bob Arning as part of the ObjectExplorer package.
> !
> 
> Item was added:
> + ----- Method: AbstractHierarchicalList>>veryDeepInner: (in category 'copying') -----
> + veryDeepInner: aDeepCopier
> +     "This method required to avoid copying my 'currentSelection'. See Object>>#veryDeepCopyWith:."
> +     super veryDeepInner: aDeepCopier!
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210830/80b3ae59/attachment.html>


More information about the Squeak-dev mailing list