Hi all,

I’m trying to make a custom GT Inspector presentation for a variable store 
(i.e. something like a dictionary). The code I have right now shows me the data 
I want:

gtInspectorDetailsIn: composite
        <gtInspectorPresentationOrder: 0>

        composite table
                title: 'Details';
                display: [ self allVariables ];
                column: 'Variable' evaluated: #key;
                column: 'Value' evaluated: #value;
                send: #value

But, what I would like to do is to take advantage of the edit ability of the 
inspector to change what is displayed in the Value column and save this 
directly to the store. I have the method for that (setVariable: withValue: ) 
but I cannot find how to tell the GTInspector to add the edit functionality and 
to call this method when an edit action is made. How should I do this?

This is Pharo 4.0 BTW.

PS: I was very impressed with the customizability of the GT inspector … until I 
wanted to make my own presentation and I found almost no documentation on how 
to do it. For such a major feature I thought there would be HOWTO’s easily 
found online but there are none. Not in the GT toolkit page 
http://gt.moosetechnology.org/ and the pages it points to, nor in the various 
blogs that talk about the GT Inspector. I did find a starting point on how to 
do it, but no clear information. Did I overlook something? If so, I think it 
would be better that this info is more easily found.


---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile


Reply via email to