[Pharo-dev] Spec new release :)

Stéphane Ducasse stephane.ducasse at inria.fr
Tue Nov 12 07:37:02 EST 2013


I'm working on the changeSorter menus because they do not work anymore.
And we will see what we can learn from there.

Stef

On Nov 12, 2013, at 1:49 AM, Stéphane Ducasse <stephane.ducasse at inria.fr> wrote:

>> 
>> Example:
>> aMenu addGroup: [ :aGroup |
>> 	aGroup addItem: [ :anItem |
>> 		anItem name: 'Browse Full';
>> 		action: [ self browseSelectedObject ];
>> 		shortcut: $b command mac | $b alt win | $b alt unix  ].
>> 	aGroup addItem: [ :anItem |
>> 		anItem name: 'Browse Class';
>> 		action: [ self browseSelectedObjectClass ] ] ].
>> 	
> 
> I do not see the value of passing block to add element to groups 
> why not the normal way i.e. passing an object. I do not get why executing
> a block with an object is better?
> 
> Stef
> 





More information about the Pharo-dev mailing list