<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        Agree. In this case, "TextColor black" works as such a "null object" for text attributes. :-) No need to add one for TextAnchor only.<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 18.04.2020 16:30:13 schrieb Tobias Pape <das.linux@gmx.de>:</p><div style="font-family:Arial,Helvetica,sans-serif"><br>> On 18.04.2020, at 15:37, Thiede, Christoph <christoph.thiede@student.hpi.uni-potsdam.de> wrote:<br>> <br>> > +                ifNil: [TextColor black "Fall back"]<br>> <br>> Do you think there would be the need for an explicit FallbackTextAttribute, which acts like a null object?<br><br>That's essentially what it is.<br>No need to overengineer.<br><br>Best regards<br>     -Tobias<br><br>> Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von commits@source.squeak.org <commits@source.squeak.org><br>> Gesendet: Freitag, 17. April 2020 16:52:44<br>> An: squeak-dev@lists.squeakfoundation.org; packages@lists.squeakfoundation.org<br>> Betreff: [squeak-dev] The Trunk: Graphics-mt.430.mcz<br>>  <br>> Marcel Taeumel uploaded a new version of Graphics to project The Trunk:<br>> http://source.squeak.org/trunk/Graphics-mt.430.mcz<br>> <br>> ==================== Summary ====================<br>> <br>> Name: Graphics-mt.430<br>> Author: mt<br>> Time: 17 April 2020, 4:52:36.27086 pm<br>> UUID: 1e5eac6b-e758-8445-b60e-7b09db8dcc63<br>> Ancestors: Graphics-nice.429<br>> <br>> Adds a simple way to use forms as text anchors without exposing Morphic, where such anchors are currently implemented.<br>> <br>> =============== Diff against Graphics-nice.429 ===============<br>> <br>> Item was added:<br>> + ----- Method: Form>>asTextAnchor (in category 'converting') -----<br>> + asTextAnchor<br>> +        "Convert the receiver to be embedded in text."<br>> + <br>> +        self flag: #refactor. "mt: Text anchors should work outside of Morphic, too. Any instance of Form could be embedded in Text."<br>> +        ^ (Smalltalk classNamed: 'TextAnchor')<br>> +                ifNil: [TextColor black "Fall back"]<br>> +                ifNotNil: [:cls | cls new anchoredMorph: self]!<br><br><br><br></commits@source.squeak.org></squeak-dev-bounces@lists.squeakfoundation.org></christoph.thiede@student.hpi.uni-potsdam.de></div></blockquote>
                                        </div></body>