Adding records to a child entity
Adding records to a child entity
- Subject: Adding records to a child entity
- From: email@hidden
- Date: Tue, 12 May 2009 21:24:11 -0400
Namaste!
I'm having a wee bit of difficulty adding records to a child entity.
The situation is this: I'm implementing drag-n-drop of files onto a
tableview I have on a window. The tableview holds a list of files
that are related to the parent record.
My program chokes on the line where I set the relationship:
newFileItem.relPattern = [[acPattern selectedObjects] objectAtIndex:0];
There is no error text in the console, and the code dies somewhere in
the core data stuff (I assume) as going up the call stack drops me on
that line. I am guessing the call to retrieve the current parent
record isn't returning the correct object. However, I'm not sure how
to get around this.
As a secondary question, I wasn't able to specifically get the
tableview to accept the drop - only the main window. Is there any way
to achieve that behavior solely for the tableview, or is registering
the window the only way?
Any help is greatly appreciated.
Thanks!
Peace, Love, and Light,
/s/ Jon C. Munson II
_______________________________________________
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