[Cuis-dev] WorldMenu

Hilaire Fernandes hilaire at drgeo.eu
Sat Jul 9 12:24:56 PDT 2022


Hi,

Now that most of the Preference work is done, I want to look again at 
the WorldMenu.
I read my past related writing in the list and I find it hard to 
understand, it will need some self-processing.
If in between you got some design ideas, please share it.

Hilaire

Le 28/05/2022 à 19:39, Hilaire Fernandes a écrit :
>
> My sentence was hard to understand, it should read:
>
>     Another interest of the builder is to have just one pragma
>     (<worldMenu>) or method name (#worldMenuSpec: aBuilder) for the
>     whole menu hierarchy *(including menu and submenus definition)*,
>     and a different *symbol *name for each menu and submenus.
>
> Thinking about this, you can't define all the menus with several 
> methods sharing the same name (here in the example worldMenuSpec:), 
> the methods will have to be spread in different classes, not 
> practical. Now I understand very clearly why the author of the Pharo 
> menu registry used pragma to select the methods providing the menu 
> definition.
>
> Oh by the way, pragma are discoverable as easily as method 
> implementors can be:
>
> Smalltalk browseAllSelect: [:m| m pragmas anySatisfy: [:p | p key = 
> #primitive:]].  (Hernan courtesy)
>
> Hilaire
>
> Le 28/05/2022 à 11:23, Hilaire Fernandes a écrit :
>> Another interest of the builder is to have just one pragma 
>> (<worldMenu>) or method name (#worldMenuSpec: aBuilder) for the whole 
>> menu hierarchy, and a different name for each menu and submenus. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220709/ff7070d3/attachment.htm>


More information about the Cuis-dev mailing list