This is what I did, But I hope this problem will not hit somewhere else.
Le 31/05/2018 à 18:06, Sven Van Caekenberghe a écrit :
That is because that particular method (with no users in the image) uses a
deprecated class, change it to the simpler
createAFormFrom: data
| error f |
error := ''.
f := [ self formFromStream: data readStream ] ifError:
[ :a :b |
error := a printString , ' ' , b printString.
(StringMorph contents: error)
color: Color red;
imageForm ].
^ { f. error }
but honestly, why this method and why not directly do
self formFromStream: data readStream
swallowing errors is so/so, IMHO. Also, the return value is really unusual. You
just want the Form, right. It is not the responsibility of a system class to do
UI for you, I think.
--
Dr. Geo
http://drgeo.eu