Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reordering of NSTableview Rows in View based Tableview

As per apple documentation drag and drop NSTableView delegate methods are called only for cell based TableViews not for View based. So there is no way to do reordering of rows using drag & drop for view based NSTableView?

like image 985
sach Avatar asked Jan 17 '23 08:01

sach


1 Answers

I have created a small sample project which has an NSOutlineView where you can add and remove items as well as reorder them. This is not an NSTableView but the implementation of the Drag & Drop protocol is basically identical.

I implemented drag and Drop in one go so it's best to look at this commit.

screenshot

like image 91
Besi Avatar answered Jan 21 '23 13:01

Besi