Hello,
I am testing the MenuModel and ListModel widgets. I wanted to create a popup menu and then set it with the ListModel >> menu: method. It runs right but once the listmodel open, when i right click on one item to see the pop-up menu it gives me the error as in the "#error.png" picture.��
Here is my example test (based on not significant data):��
[
menu := MenuModel new.
menu addGroup: [ :group |
group addItem: [ :item |
item name: 'item1';
icon: (self iconNamed: #nautilus);
action: [ anyAction1 ]]];
addGroup: [ :group |
group addItem: [ :item |
item name: 'item2';
icon: (self iconNamed: #smallSaveAs);
action: [ anyAction2��]]];
addGroup: [ :group |
group addItem: [ :item |
item name: 'item3';
icon: (self iconNamed: #smallAuthoringTools);
action: [ anyAction4��]]].
ll := LinkedList new.
ll add: 'value1';
add: 'value2';
add: 'value3';
add: 'value4';
add: 'value5';
yourself.
lm := ListModel new.
lm
items: ll;
title: 'ListModel Menu Test'.
lm menu:menu.
lm openWithSpec.
]
I get that the #cull:cull: message is not understood by my instance of MenuModel but i simply call the #menu: method defined in ListModel. Any ideas on the problem ?��