[squeak-dev] The Trunk: MorphicExtras-ul.266.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Oct 1 10:55:47 UTC 2019


Levente Uzonyi uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-ul.266.mcz

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

Name: MorphicExtras-ul.266
Author: ul
Time: 1 October 2019, 12:52:37.116899 pm
UUID: 8e1fa37a-7f02-4792-b0c0-fe14c74b2400
Ancestors: MorphicExtras-mt.265

- use #ofSize: instead of #new:withAll: to create OrderedCollections with a predefined size filled up with nils

=============== Diff against MorphicExtras-mt.265 ===============

Item was changed:
  ----- Method: ScrollingToolHolder>>buildAPrototypeFor: (in category 'initialize-release') -----
  buildAPrototypeFor: aPaintBoxMorph
  	pickupButtons := (aPaintBoxMorph submorphNamed: 'stamps') submorphs select: [:e | e externalName = 'pickup:'].
  	stampButtons := (aPaintBoxMorph submorphNamed: 'stamps') submorphs select: [:e | e externalName = 'stamp:'].
+ 	stamps := OrderedCollection ofSize: 3.
+ 	thumbnailPics := OrderedCollection ofSize: 3.
- 	stamps := OrderedCollection new: 3 withAll: nil.
- 	thumbnailPics := OrderedCollection new: 3 withAll: nil.
  	start := 3.!



More information about the Squeak-dev mailing list