"find method" changes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: "find method" changes

Michael Davies-2
I've posted a new version of the ListChooser (now called NewListChooser just to confuse you all) to http://bugs.squeak.org/view.php?id=7478. (also attached).

It's now based on ToolBuilder, which means there's a dependency on Morphic-MAD.381 which is currently in the Inbox.

It should work happily with many more types of Collections.
It allows you to specify whether you want the index or the value of the selected item.
If you're after the item, you can allow the user to submit a new value not in the list.

There's a horrible piece of code in #buildWith: to allow me to connect with the morphs generated by ToolBuilder:
    searchMorph := window submorphs detect:
        [ :each | each isKindOf: PluggableTextMorph ].
Is there a nicer way of doing this?





NewListChooser-v2.st (17K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "find method" changes

Michael Davies-2
gaaah, also needs:
ToolBuilder-Kernel-MAD.33
ToolBuilder-Morphic-MAD.52

both also in Inbox

On 14 March 2010 16:32, Michael Davies <[hidden email]> wrote:
I've posted a new version of the ListChooser (now called NewListChooser just to confuse you all) to http://bugs.squeak.org/view.php?id=7478. (also attached).

It's now based on ToolBuilder, which means there's a dependency on Morphic-MAD.381 which is currently in the Inbox.

It should work happily with many more types of Collections.
It allows you to specify whether you want the index or the value of the selected item.
If you're after the item, you can allow the user to submit a new value not in the list.

There's a horrible piece of code in #buildWith: to allow me to connect with the morphs generated by ToolBuilder:
    searchMorph := window submorphs detect:
        [ :each | each isKindOf: PluggableTextMorph ].
Is there a nicer way of doing this?





12