Ben
On 07 Apr 2014, at 12:17, MartinW <w...@fastmail.fm> wrote:

> 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?

This should be changed, but this is to be fixed in Morphic,
and since it’s not breaking anything in Pharo (so far),
it will be changed in early 4.0

Ben

> 
> 
> 
> --
> View this message in context: 
> http://forum.world.st/Drag-and-drop-items-between-list-views-tp4752285p4753118.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
> 

Reply via email to