Nov. 9, 2013
3:38 p.m.
btc@openinworld.com wrote:
P.S. Some questions for Spec gurus...
* looking at #defaultSpec from this episode, if the pattern is always... mainColumn newRow: [ :aRow | aRow doStuff; otherStuff... ] what is gained over a pattern like... mainColumn newRow doStuff ; otherStuff.
I guess I can answer my own question from observing PharoLauncher's use of 'r' in the nested block. PhLCommandToolbar>>dynamicLayout "Create a spec layout with 1 row, and as many columns as there are command classes" ^ SpecLayout composed newRow: [ :r | self commandClasses do: [ :commandClass | r add: commandClass specId ] ] cheers -ben