I see some discussion in this group on how to configure tables for drag and drop.
I followed most of the patterns I've found, but still when I try to drag a row on my table, it doesn't start a drag operation and just selects the rows that the mouse ends up traversing as I move it with the mouse down.
Is there a simple example of how to get this working somewhere? I'm finding it difficult to find - there is plenty of general test code, but not too many examples.
From what I've been able to glean, the magic incantation ought to involve:
- setting setVerticalMotionCanBeginDrag to yes on the table
- having a data source delegate attached to the table that will implement the methods to:
- validateDrop
- acceptDrop
- draggingSession:willBegin (not sure if this is necessary though)
- writeRowsWithIndexes
Most of this stuff seems to be to handle the results of a drag operation, but I don't even seem to be able to get one started atm.