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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to