Squeak
  QotD    "To be or not to be" – Shakespeare
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
aMorph resumeAfterDrawError
Last updated at 12:58 pm UTC on 29 August 2017

Question

Chris Cunningham
Thu, Aug 24, 2017 at 10:09 PM
Reply-To: The general-purpose Squeak developers list
To: The general-purpose Squeak developers list

Normally when I have a morphic drawing failure (usually due to a bug in my drawing code) and the whole morph turns into the yellow X on the red box, I just delete the morph and make a new one.

However, I'd like to get it running/drawing again instead.

Is there a trick to get the morph to start drawing again?


Answer

Marcel Taeumel
Fri, Aug 25, 2017 at 9:05 AM
Reply-To: The general-purpose Squeak developers list
To: squeak-dev@lists.squeakfoundation.org
Reply | Reply to all | Forward | Print | Delete | Show original
Hi Chris,

the code for this is "aMorph resumeAfterDrawError" or just "aMorph removeProperty: #errorOnDraw", which is set in WorldState >> #displayWorldSafely:.

Best,
Marcel