Unfortunately, Drag & Drop is still broken on macOS.
Is there a way to do it ourselves through the CocoaMessage command?
Drag & Drop
Re: Drag & Drop
I think it might be possible.
What do you exactly want ?
What do you exactly want ?
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Drag & Drop
I want to be able to reorder the items of gadgets - particularly the TreeGadget and ListIconGadget.
Re: Drag & Drop
Did you already try my workaround (hidden thread) for ListIconGadgets? It has the big disadvantage that you have to wait some seconds after selecting a cell and before you may click a 2nd time onto that cell to move it. But at least it's working (kind of)...
Re: Drag & Drop
It looks like in order to do that, you will have to implement certain methods for NSTableViewDataSource / NSOutlineViewDataSource .wombats wrote:I want to be able to reorder the items of gadgets - particularly the TreeGadget and ListIconGadget.
I found a Swift example.
https://gist.github.com/sooop/3c964900d ... 5050d0de0a
Looking at the code, it appears you need to implement the following methods for the ListIconGadget.
tableView:writeRowsWithIndexes:toPasteboard:
tableView:acceptDrop:row:dropOperation:
tableView:validateDrop:proposedRow:proposedDropOperation:
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)