(newbee) CustomMenu problem.

Marcus Pedersén marcus.pedersen at comhem.se
Mon Nov 7 22:14:54 UTC 2005


Hi!
I have made a class say: MyClass.
In that class I have made a SimpleButtonMorph that calls a metod in MyClass: myMethod.
In myMethod I start up a CustomMenu similar to this:

| menu |
menu := CustomMenu new.
menu title: 'Delete?'.
menu 
    add: 'Yes' 
    target: self 
    selector: #myMethod2 
    argument: nil.

and I have made a method in MyClass called: myMethod2.
I want the CustomMenu to call myMethod2 in MyClass but this does not happen!?
The CustomMenu appears when I click the button but after that nothing happens.
I must be thinking wrong somehow?
What am I doing wrong?
Many thanks in advance!
Marcus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20051107/c2ed46a6/attachment.htm


More information about the Squeak-dev mailing list