• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adding records to a child entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: Adding records to a child entity
      • From: "Jon C. Munson II" <email@hidden>
  • Prev by Date: CFShow doesn't show up in non-admin user logs
  • Next by Date: Re: Interpreting action from NSStepper
  • Previous by thread: CFShow doesn't show up in non-admin user logs
  • Next by thread: RE: Adding records to a child entity
  • Index(es):
    • Date
    • Thread