"Elliot Finley" <
[hidden email]> wrote in message
news:
[hidden email]...
> I have a model that basically consists of a socket interface to a slightly
> modified LookupTable.
...
> I'm at a loss as to which presenter/view to use to present the
LookupTable.
> Basically I just need a two column list that allows items to be
> added/deleted/changed. And to somehow wire that up to the LookupTable.
...
Check out the DictionaryPresenter. Maybe you can use it behind a multi-
However for some reason I have a feeling that it may not always be a
replacement for a ListPresenter. I forget the details, but I recall that
the DictionaryPresenter did not always work where I needed it to. Perhaps
someone else can clarify this. There were times I ended up using a
collection of associations in lists. That may not work for you if the lists
can be updated behind the scenes as well. See a brief programmatic example
of the DictionaryPresenter bellow:
=======
dict := LookupTable new.
dict at: 1 put: 'one'; at: 2 put: 'two'; at: 3 put: 'three'.
dp := DictionaryPresenter showOn: dict.
lv := dp view viewNamed: 'list'.
nc := lv addColumn.
nc text: 'Key'.
nc getTextBlock: [:each | each key displayString].
nc := lv addColumn.
nc text: 'Value'.
nc getTextBlock: [:each | each value displayString].
lv removeColumnAtIndex: 1.
lv hasColumnHeaders: true.
=======
Chris