[Cuis-dev] not understanding TextModelMorph

Mark Volkmann r.mark.volkmann at gmail.com
Thu Jun 13 14:23:55 PDT 2024


On Thu, Jun 13, 2024 at 3:55 PM Hilaire Fernandes via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> Le 13/06/2024 à 22:42, Mark Volkmann via Cuis-dev a écrit :
>
> book := VBook new author: 'R. Mark Volkmann'; title: 'htmx'; yourself.
>> tm := TextModelMorph
>>     textProvider: book
>>     textGetter: #author
>>    * textSetter:* *#author:*.
>> tm openInWorld
>>
>
> Yes, I forgot the "yourself" part. Thanks for catching that. But it still
> doesn't work. I can change the value in the TextModelMorph and the value
> of the author instance variable in the book object does not change.
>
> No need for yourself in this situation.
>
> Your argument for the textSetter: key was wrong; You need the setter
> message *#anchor:* with one parameter, you were using the getter *#anchor*
>
Sadly, even with that correction it does not work. I can edit the contents
of the TextModelMorph, but the author instance variable in the book object
doesn't change. Is this working for anyone else?

-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240613/cc189113/attachment.htm>


More information about the Cuis-dev mailing list