[squeak-dev] The Trunk: ToolBuilder-Kernel-bf.64.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Dec 8 01:11:53 UTC 2014


Bert Freudenberg uploaded a new version of ToolBuilder-Kernel to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Kernel-bf.64.mcz

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

Name: ToolBuilder-Kernel-bf.64
Author: bf
Time: 8 December 2014, 2:11:41.299 am
UUID: 3c3c6935-2022-4f1a-b70a-125d055210d3
Ancestors: ToolBuilder-Kernel-eem.63

Restore timestamps lost in assignment conversion.

=============== Diff against ToolBuilder-Kernel-eem.63 ===============

Item was changed:
  ----- Method: String>>displayProgressAt:from:to:during: (in category '*toolbuilder-kernel') -----
  displayProgressAt: aPoint from: minVal to: maxVal during: workBlock 
  	"Display this string as a caption over a progress bar while workBlock is evaluated.
  
  EXAMPLE (Select next 6 lines and Do It)
  'Now here''s some Real Progress'
  	displayProgressAt: Sensor cursorPoint
  	from: 0 to: 10
  	during: [:bar |
  	1 to: 10 do: [:x | bar value: x.
  			(Delay forMilliseconds: 500) wait]].
  
  HOW IT WORKS (Try this in any other language :-)
  Since your code (the last 2 lines in the above example) is in a block,
  this method gets control to display its heading before, and clean up 
  the screen after, its execution.
  The key, though, is that the block is supplied with an argument,
  named 'bar' in the example, which will update the bar image every 
  it is sent the message value: x, where x is in the from:to: range.
  "
  	^ProgressInitiationException 
  		display: self
  		at: aPoint 
  		from: minVal 
  		to: maxVal 
  		during: workBlock!



More information about the Squeak-dev mailing list