Thanks Kasper

 

That’s kind of what I thought.  I think it’s because I did not enclose the 
instance in a layout such as SpBoxLayout which meant I couldn’t get the 
reference to the instance in order to execute valueAtCollumn:row:.

 

I’ve implemented a new subclass to verify this and it works.

 

Regards

Bob

 

From: Kasper Osterbye <kasper.oster...@gmail.com>
Reply to: Any question about pharo is welcome <pharo-users@lists.pharo.org>
Date: Thursday, 10 February 2022 at 14:30
To: Any question about pharo is welcome <pharo-users@lists.pharo.org>
Subject: [Pharo-users] Re: What am I doing wrong with Spec2 in Pharo 9?

 

It might be something else, but the browser to the left is looking at the 
instance side, whereas the browser to the right is looking at the class side. 

 

Hence, your class side method openAttributeEditorOn: do not know about the 
instance side method valueAtColumn:row: 

 

It is hard to guess from your code, but I guess you need to capture the table 
instance in the double click and pass that to the class side, or implement the 
openAttributeEditorOn: on the instance side to give access self on the instance 
side.

 

Best,

 

Kasper



On 10 Feb 2022, at 12.27, Robert Briggs via Pharo-users 
<pharo-users@lists.pharo.org> wrote:

 

I have  a subclass of SpTablePresenter which correctly displays a list of 
items.  It is set up to activateOnDoubleClick as I want to open another 
SpPresenter I have created on the selected table row using the value in the 
first column to complete the presenter.  My SpTablePresenter headed Element 
Attributes is shown bottom left in the attached screenshot.

 

The class method top right reports that valueAtColumn:row: is sent but not 
implemented and yet it clearly is implemented by the superclass of my presenter 
(and I have used the method elsewhere in my project (NB: this method is just an 
instrument at the moment so that I can check what is happening.

 

Double clicking a table row executes the method openAttributeEditorOn:  but the 
debugger reports instance of my presenter class did not understand 
valueAtColumn:row:

 

 

So what am I doing wrong here?

 

Advice please.

 

Regards

Bob Briggs

 

 

 

<PharoScreenshot.2.png>

 

Reply via email to