[Pkg] The Trunk: MorphicExtras-fbs.116.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jul 18 21:21:01 UTC 2013

Frank Shearar uploaded a new version of MorphicExtras to project The Trunk:

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

Name: MorphicExtras-fbs.116
Author: fbs
Time: 18 July 2013, 10:20:26.636 pm
UUID: 91189b1a-4fc2-7849-b766-a8b3c8dabb45
Ancestors: MorphicExtras-fbs.115

Tim Rowledge says:

"I was spending a couple of minutes whacking old mantis reports and found a related bug when checking 001818; open the 'objects' morph, click on 'alphabetic' and fail!!! It's due to the recent change in Character>to: - it used to create a collection and now makes a String (not entirely convinced that was a good idea), so using #collect: ends up with a 'improper store' error. This works around it so that at least the objects tool now works."

=============== Diff against MorphicExtras-fbs.115 ===============

Item was changed:
  ----- Method: ObjectsTool>>alphabeticTabs (in category 'alphabetic') -----
  	"Answer a list of buttons which, when hit, will trigger the choice of a morphic category"
  	| buttonList tabLabels |
  	self flag: #todo. "includes non-english characters"
+ 	tabLabels := (($a to: $z) asOrderedCollection collect: [:ch | ch asString]) .
- 	tabLabels := (($a to: $z) collect: [:ch | ch asString]) asOrderedCollection.
  	buttonList := tabLabels collect:
  		[:catName |
  			| aButton |
  			aButton := SimpleButtonMorph new label: catName.
  			aButton actWhen: #buttonDown.
  			aButton target: self; actionSelector: #showAlphabeticCategory:fromButton:; arguments: {catName. aButton}].
  	^ buttonList
  "ObjectsTool new tabsForMorphicCategories"!

More information about the Packages mailing list