[squeak-dev] The Trunk: ToolBuilder-Kernel-fbs.54.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Jun 4 09:42:04 UTC 2013


Frank Shearar uploaded a new version of ToolBuilder-Kernel to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Kernel-fbs.54.mcz

==================== Summary ====================

Name: ToolBuilder-Kernel-fbs.54
Author: fbs
Time: 3 June 2013, 10:47:06.146 pm
UUID: 1cd75705-2c2b-4bb7-ba26-2b92ef427c88
Ancestors: ToolBuilder-Kernel-cwp.53

These methods ask the user for something. (As in, that's their primary purpose.) As such they belong in the same package as UIManager, ToolBuilder-Kernel.

(I don't see the value of these 'convenience' methods, but I suppose others do.)

=============== Diff against ToolBuilder-Kernel-cwp.53 ===============

Item was added:
+ ----- Method: Object>>confirm: (in category '*ToolBuilder-Kernel-error handling') -----
+ confirm: queryString
+ 	"Put up a yes/no menu with caption queryString. Answer true if the 
+ 	response is yes, false if no. This is a modal question--the user must 
+ 	respond yes or no."
+ 
+ 	"nil confirm: 'Are you hungry?'"
+ 
+ 	^ UIManager default confirm: queryString!

Item was added:
+ ----- Method: Object>>confirm:orCancel: (in category '*ToolBuilder-Kernel-error handling') -----
+ confirm: aString orCancel: cancelBlock
+ 	"Put up a yes/no/cancel menu with caption aString. Answer true if  
+ 	the response is yes, false if no. If cancel is chosen, evaluate  
+ 	cancelBlock. This is a modal question--the user must respond yes or no."
+ 
+ 	^ UIManager default confirm: aString orCancel: cancelBlock!

Item was added:
+ ----- Method: Object>>inform: (in category '*ToolBuilder-Kernel-user interface') -----
+ inform: aString
+ 	"Display a message for the user to read and then dismiss. 6/9/96 sw"
+ 
+ 	aString isEmptyOrNil ifFalse: [UIManager default inform: aString]!



More information about the Squeak-dev mailing list