[Cuis-dev] #submorphBehind: fails

Juan Vuletich juan at jvuletich.org
Sun Sep 29 09:59:42 PDT 2019


On 9/23/2019 11:52 PM, Phil B via Cuis-dev wrote:
> I've run into a situation a few times where was I getting an 
> unexpected Morphic-related error. (i.e. when it was trying to find a 
> morph to give keyboard focus when opening a new morph)  The issue is 
> that #submorphBehind: sends #after: which fails because there is no 
> element found.  So just I have #submorphBehind: return nil on error 
> (attached).  It's  running great after 30 seconds of intensive testing ;-)

Hi Phil,

I've just pushed to GitHub an alternative to your code that doesn't 
require an exception handler.

Thanks,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich



More information about the Cuis-dev mailing list