I have been trying to get drag and drop working to copy from one tableview to another in the same application. Each table view uses Core Data to obtain its data.
I used the Data Modeler to create two models, one for the data in each tableview.
The model for the data in the destination tableview is essentially the same as for the source tableview. The only difference is that the data model for the destination tableview has an additional entity and a relationship.
Both tableviews display 3 columns of data, which are NSStrings.
When I drag and drop, I simply want to copy the selected rows (each containing 3 strings).
Right now I’m getting an error message when I try to decode the pasteboard data: “Failed to call designated initializer on NSManagedObject class ‘Market’”
I guess I can write more code and just copy the strings to build an array that doesn’t depend on “NSManagedObject”, but perhaps someone can help me avoid doing this, but instead recommend a method makes drag and drop compatible with Core Data.