Improving ToolBuilder

Andreas Raab andreas.raab at gmx.de
Tue Sep 18 09:10:48 UTC 2007


Damien Cassou wrote:
> But how can I change
> 
> OBMorphicPlatform>>handleConfirmationRequest: request
>   ^ PopUpMenu
>         confirm: request prompt
>         trueChoice: request okChoice
>         falseChoice: request cancelChoice
> 
> There is no such method in UIManager.

^UIManager default
	chooseFrom: {request okChoice. request cancelChoice}
	values: {true. false}
	title: request prompt.


> And this one:
> 
> OBMorphicPlatform>>handleTextRequest: request
>   ^ FillInTheBlankMorph
>        request: request prompt
>        initialAnswer: request template
>        centerAt: Sensor cursorPoint
>        inWorld: World
>        onCancelReturn: nil
>        acceptOnCR: true
> 
> There is no way of returning nil on Cancel. The empty string is always returned.

^(UIMananger default
	request:request prompt
	initialAnswer: request template) ifEmpty:[nil]



More information about the Squeak-dev mailing list