Both #head and #tail is used by MorphTreeNodeMorph (#expandPath: and #matchPath:) to select items deeper inside the tree structure and then expanding to this. ------------------------------------------------------------------------- | model morph | model := ClassTreeExample new. model openOn: Morph. model selectItems: { Morph -> BorderedMorph -> AlignmentMorph }. -------------------------------------------------------------------------
Changing one should not be done without the other. Best regards, Henrik -----Opprinnelig melding----- Fra: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] På vegne av Sven Van Caekenberghe Sendt: 11 January 2017 11:56 Til: Pharo Development List <pharo-dev@lists.pharo.org> Emne: Re: [Pharo-dev] Strange DNU effect on Windows with Pastell All good and well, but maybe its me, but I can't see where it is being used ... > On 11 Jan 2017, at 11:46, Henrik Nergaard <draag...@outlook.com> wrote: > > And Object/Association >> #tail > > Best regards, > Henrik > > -----Opprinnelig melding----- > Fra: Pharo-dev [mailto:pharo-dev-boun...@lists.pharo.org] På vegne av Esteban > Lorenzano > Sendt: 11 January 2017 10:13 > Til: Pharo Development List <pharo-dev@lists.pharo.org> > Emne: Re: [Pharo-dev] Strange DNU effect on Windows with Pastell > > >> On 11 Jan 2017, at 10:12, Esteban Lorenzano <esteba...@gmail.com> wrote: >> >> at least we should rename it as “treeMorphHead”… just “head” is too generic. > > “treeNodeHead” I meant. > >> >> Esteban >> >> >>> On 11 Jan 2017, at 10:03, Sven Van Caekenberghe <s...@stfx.eu> wrote: >>> >>> >>>> On 11 Jan 2017, at 09:55, Torsten Bergmann <asta...@gmx.de> wrote: >>>> >>>>> But why the hell would there be a Object>>#head ?! >>>>> >>>>> IMHO such general selectors at this level should not be used unless there >>>>> is a very good reason to do so. >>>>> >>>> >>>> Yes - some Morphic addition. Version says: BenjaminVanRyseghem in >>>> 2013 Only used in MorphTreeNodeMorph and to me this smells. We should nuke >>>> it. >>>> >>>> Thx >>>> T. >>> >>> Looking in a 6 image, there is also an even uglier implementation in >>> >>> Association>>#head >>> >>> ^ (key isKindOf: Association) >>> ifTrue: [ key head ] >>> ifFalse: [ key ] >>> >>> Duh. >>> >>> And I can't seen any senders... >>> >>> >> > >