[Cuis-dev] Be notified of edit from TextModelMorph

Mariano Montone marianomontone at gmail.com
Wed Feb 16 08:38:42 PST 2022


El 16/2/22 a las 13:34, Mariano Montone escribió:
> El 16/2/22 a las 13:09, Hilaire Fernandes via Cuis-dev escribió:
>> Hi,
>>
>> I want to be notified by a TextModelMorph instance every time the user 
>> edit the text like inserting/deleting a character. Not only receiving 
>> notification when the user press Return. I  did not find how to do that.
>>
>> Ideas?
> 
> I usually create a subclass the Morph, implement what I need, and use that.
> 
> 🤷‍♂️
> 

You can also attach event handlers dynamically using properties. Look at 
Morph>>keyDown: method for example ..



More information about the Cuis-dev mailing list