[squeak-dev] The Trunk: ToolBuilder-Kernel-tpr.157.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Apr 19 18:58:10 UTC 2022
tim Rowledge uploaded a new version of ToolBuilder-Kernel to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Kernel-tpr.157.mcz
==================== Summary ====================
Name: ToolBuilder-Kernel-tpr.157
Author: tpr
Time: 19 April 2022, 11:58:09.526434 am
UUID: 43bfecfe-db9b-4efa-aa44-b38af948d906
Ancestors: ToolBuilder-Kernel-ct.156
Add a ToolBuilder ability to show a list of options - typically a small number, maybe with a cancel button etc - as opposed to an arbitrary list of values. This separates it out from the chooseFrom:... protocol
=============== Diff against ToolBuilder-Kernel-ct.156 ===============
Item was added:
+ ----- Method: UIManager>>chooseOptionFrom:lines: (in category 'ui requests') -----
+ chooseOptionFrom: aList lines: anArray
+ "Choose an option from the given list. Answer the index of the selected item."
+
+ ^self chooseOptionFrom: aList lines: anArray title: ''!
Item was added:
+ ----- Method: UIManager>>chooseOptionFrom:lines:title: (in category 'ui requests') -----
+ chooseOptionFrom: aList lines: linesArray title: aString
+ "Choose an option from the given list. Answer the index of the selected item."
+ ^self subclassResponsibility!
Item was added:
+ ----- Method: UIManager>>chooseOptionFrom:title: (in category 'ui requests') -----
+ chooseOptionFrom: aList title: aString
+ "Choose an option from the given list. Answer the index of the selected item."
+
+ ^self chooseOptionFrom: aList lines: #() title: aString!
More information about the Squeak-dev
mailing list
|