Re: Drag and drop between two table views.
Re: Drag and drop between two table views.
- Subject: Re: Drag and drop between two table views.
- From: Paul Johnson <email@hidden>
- Date: Thu, 28 Oct 2010 16:20:54 -0500
Thanks, Graham. Let me restate the "drag and drop" problem I'm having and
maybe someone with Core Data experience can give me some further help:
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 and 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.
_______________________________________________
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