You could use optionsAndLabels: which takes a collection of object->label associations

 
On Wed, May 2, 2012 at 10:20 AM, Friedrich Dominicus <frido@q-software-solutions.de> wrote:
John McKeon <p3anoman@gmail.com> writes:

> In the select tag for the "combo box"
>  
> html select
>    list: someCollectionOfAddr
>    labels: [ :addr | addr zip etc ]
>    callback: [ :addr | self doSomethingWith: addr ]
I've not written any rendering for this box. I have used Magritte
descriptionAddresses
       <magritteDescription>
       ^ MASingleOptionDescription new
       accessor: #addresses;
       label: 'Addresses' ;
       priority: 400;
       options: self addresses
       yourself

it should render all the addresses in one combobox. And the elements are
TAddress objects. If I'm not overwriting printOn. I just got the usual
a TAddress in the combobox. What want is
a) having a TAddress rendered in this printable (short) form zip city;
street

b) If I'm clicking on the combobox entry I want to get the choice on
what I want to do. e.g editing this TAddress switching to the overview
of the Addresses or what else I might find useful here.

Does this clarify the things a bit?

My idea was that I probably have to implement something derived from
MAWriter but it seems I'm on the wrong track here.



Regards
Friedrich

--
Q-Software Solutions GmbH; Sitz: Bruchsal; Registergericht: Mannheim
Registriernummer: HRB232138; Geschaeftsfuehrer: Friedrich Dominicus

_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki