Right now it does not work with a value holder. It directly returns a MenuMorph.
https://pharo.fogbugz.com/f/cases/11819/TextModel-codePaneMenu-shifted-should-work-with-a-value-holder

Andrei


On Tue, Oct 8, 2013 at 1:46 PM, Benjamin <Benjamin.VanRyseghem.Pharo@gmail.com> wrote:
This method #codePaneMenu:shifted:�
should return the contents of a value holder.

If it's not the case, then it's a design problem in Spec :)
In this eventuality, then open a bug entry, I will fix it tomorrow

Ben

On Oct 8, 2013, at 1:09 PM, Andrei Chis <chisvasileandrei@gmail.com> wrote:

Hi,

I want to have a TextModel with a custom contextual menu.�
Is there any other solution then subclassing TextModel and overriding #codePaneMenu:shifted: ?

Cheers,
Andrei