[squeak-dev] Infinite dialog loop in authorinitials

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Wed Feb 26 08:18:00 UTC 2020


Well, I agree that infinite dialog loops do not provide optimal user convenience. But it is not really a proper solution to serve any default value here, as Tim pointed out.


What about this?


Computer: Please enter your author initials!

User: No thanks (Cancel)!

Computer: Warning: This will raise an error. Are you sure?

User: I'm not sure (No)!

Computer: Please enter your author initials!

User: No thanks (Cancel)!

Computer: Warning: This will raise an error. Are you sure?

User: I'm sure (Yes)!
Computer: self error

> Oh, let's remember the slightly strange but useful UIManager>>#askForProvidedAnswerTo:ifSupplied: for this sort of case as well.

Please, don't reuse this strangle protocol ... First, a ProvideAnswerNotification is already raised in this case, and second, their interface is quite horrible IMHO ... :-)

Best,
Christoph

________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von tim Rowledge <tim at rowledge.org>
Gesendet: Dienstag, 25. Februar 2020 19:47:23
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] Infinite dialog loop in authorinitials

Oh, let's remember the slightly strange but useful UIManager>>#askForProvidedAnswerTo:ifSupplied: for this sort of case as well.

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: DCBP: Detonate Chair on Bad Password



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200226/3bdea3ec/attachment.html>


More information about the Squeak-dev mailing list