<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
Hi Eliot,<div><br></div><div>yes, I would also prefer inheritance (e.g. CharacterArray between ArrayedCollection and String/Text) over MNU.</div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
<p style="color: #AAAAAA; margin-top: 10px;">Am 22.03.2019 15:37:02 schrieb Eliot Miranda <eliot.miranda@gmail.com>:</p><div style="font-family:Arial,Helvetica,sans-serif"><div dir="ltr"><br></div><div dir="ltr">On Mar 22, 2019, at 12:19 AM, Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de">marcel.taeumel@hpi.de</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
Hi, there.<div><br></div><div>Can we find better ways for supporting String protocols in Text objects? Maybe through DNU?</div></div></div></blockquote><div><br></div>Look at VisualWorks. I can’t remember how it’s solved there but it’s way better than Squeak. I *think* it introduces an abstract class CharacterArray above String & Text and moves as much protocol there as possible. MNU would be a horrible approach IMO.<div><br><blockquote type="cite"><div dir="ltr"><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000"><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
<p style="color: #AAAAAA; margin-top: 10px;">Am 21.03.2019 22:43:16 schrieb <a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a> <<a href="mailto:commits@source.squeak.org">commits@source.squeak.org</a>>:</p><div style="font-family:Arial,Helvetica,sans-serif">A new version of Morphic was added to project The Inbox:<br><a href="http://source.squeak.org/inbox/Morphic-sjce.1465.mcz">http://source.squeak.org/inbox/Morphic-sjce.1465.mcz</a><br><br>==================== Summary ====================<br><br>Name: Morphic-sjce.1465<br>Author: sjce<br>Time: 21 March 2019, 10:43:01.809481 pm<br>UUID: f283ce64-3557-483a-971f-43ad678deef9<br>Ancestors: Morphic-eem.1464<br><br>Trying to open the debugger halo on the resulting window results in a MNU <br>Text>>truncateWithElipsisTo: in HaloMorph>>doDebug:with: <br><br>Trying to grab the window results in a MNU Text>>truncateTo: <br>in Morph>>nameForUndoWording that needs a similar change<br><br>=============== Diff against Morphic-eem.1464 ===============<br><br>Item was changed:<br> ----- Method: HaloMorph>>doDebug:with: (in category 'private') -----<br> doDebug: evt with: menuHandle<br> "Ask hand to invoke the a debugging menu for my inner target. If shift key is down, immediately put up an inspector on the inner target"<br> <br> | menu |<br> evt shiftPressed ifTrue: [<br> evt hand removeHalo.<br> ^ innerTarget inspectInMorphic: evt].<br> <br> menu := innerTarget buildDebugMenu: evt hand.<br>+ menu addTitle: (innerTarget externalName asString truncateWithElipsisTo: 40).<br>- menu addTitle: (innerTarget externalName truncateWithElipsisTo: 40).<br> menu popUpEvent: evt in: self world.<br> evt hand removeHalo.!<br><br>Item was changed:<br> ----- Method: Morph>>nameForUndoWording (in category 'dropping/grabbing') -----<br> nameForUndoWording<br> "Return wording appropriate to the receiver for use in an undo-related menu item (and perhaps elsewhere)"<br> <br> | aName |<br> aName := self knownName ifNil: [self renderedMorph class name].<br>+ ^ aName asString truncateTo: 24!<br>- ^ aName truncateTo: 24!<br><br><br></div></blockquote>
</div></div></blockquote><blockquote type="cite"><div dir="ltr"><span></span><br></div></blockquote></div></div></blockquote>
</div></body>