[Cuis-dev] not understanding TextModelMorph

Hilaire Fernandes hfern at free.fr
Thu Jun 13 13:55:17 PDT 2024


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*

-- 
GNU Dr. Geo
http://gnu.org/s/dr-geo/
http://gnu-drgeo.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240613/c88535fe/attachment.htm>


More information about the Cuis-dev mailing list