Hi Stef,
I am searching to do that too.
For now, I am using something else... And I plan to create new Menu more usable.
Here is what I use, for your case, just adapt it when trying:
===
| aMenu sz on |
on := soundInput isRecording.
self stop.
aMenu := MenuMorph new title: ('FFT size (currently {1})' translated format:{fft n}).
((7 to: 10) collect: [:n | 2 raisedTo: n]) do: [:r |
aMenu add: r printString
target: FFT
selector: #new
argument: r
].
aMenu popUpInWorld.
self resetDisplay.
on ifTrue: [self start].
===
the problem is that we are missing a way to have menu that simply return a value (without resorting to a method execution and selector).