Hi,
1) this is caused by this line in "listIntConfiguration" dragTransformationBlock: [ :item | item asInteger ]; you are dragging a symbol c, but "#c asInteger = nil" 2) dragging the number converts it into a StringMorph which obviously isn't in the original collection. This is quite [expletive], because each list behaves differently: * ListModel the passenger is the object converted to a Morph, * IconListModel (a subclass of ListModel) has as a passenger IconListItem that holds reference to the original object * FastTableModel (a subclass of ListModel) will just break down on drag * MultiColumnListModel (a subclass of ListModel) won't even launch * NewListModel breaks down on drag * TreeModel has a different API, but also breaks down on drag Fun, ain't it? 3) probably similar to (2), didn't have the energy to investigate… NOW: In general, the drag and drop behavior, the API, and the overall behavior is broken to a various degree and inconsistent between ListModel, it's children and related classes (TreeModel, NewListModel). Last week I was working on a File Dialog replacement https://github.com/peteruhnak/file-dialog and the brokenness and inconsistencies were really frustrating. I don't see a point in trying to write a book about this particular section because it's really bad right now. Of course not having a dedicated maintainer of Spec makes life a lot harder, as people that work with/on Spec generally invest into Spec at their own time discretion (me included), so while bugs can generally be fixed, there's really no systematic effort in cleanup and API harmonization. With Stef we started to clean up and rethink it a bit when I was in Lille because there's a lot of things we don't like or should fix, but that's a long-term plan. We need a more immediate solution for the current mess. -_- TL;DR: 1. imho no point in documenting this stuff _right now_ 2. it's seriously broken 3. we need to clean it up and harmonize first Peter On Thu, Jun 9, 2016 at 3:52 PM, Marion Noirbent <[hidden email]> wrote: Hello |
Free forum by Nabble | Edit this page |