NSTableView: move rows through drag and drop?
NSTableView: move rows through drag and drop?
- Subject: NSTableView: move rows through drag and drop?
- From: Izak van Langevelde <email@hidden>
- Date: Tue, 09 Aug 2011 23:43:20 -0400
I implemented drag and drop in an NSTableView by writing the row indexes of the rows to be copied/moved to the pasteboard, which works.
Now I want to allow drag and drop from one document to another, and my first guess was to write the row data to the pasteboard.
What puzzles me, is how to delete the row data from the source data, in case of a move. That is, my acceptDrop inserts the row data into the destination data source, but the indexes of the source rows are not available at this point. Of course, I can add row numbers to the row data on the pasteboard, but this is a bit double. What is the standard approach to this?
---
Grinnikend door het leven...
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden