Benjamin Van Ryseghem (Pharo) wrote
Out of this thread, I have made this post:
http://spec.st/docs/drag_n_drop/With a small change in the Spec code base (to not sort by default, but only when a sorting block is specified),
it gives an example of how to do what you want :)
Cool. Thank you.
Still the fact that the passenger does only know the object's string representation is a problem. Because in a real application i would not display strings and integers in the lists, but my domain objects. And already with this example it does not work: you convert the string to an integer when it leaves list1 - but of course a user might drag it back from list2 to list1 - and here you can no longer convert it as you do not know if the dragged object is a string or an integer…
Why does the passenger only know an object's string representation? Can this be changed?