• 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
Re: Core Data Problem: Creating a child object creates unwanted parent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Problem: Creating a child object creates unwanted parent


  • Subject: Re: Core Data Problem: Creating a child object creates unwanted parent
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 13 May 2009 22:10:28 -0700


On 2009 May 13, at 15:26, Kent Hauser wrote:

My actual problem is that when I create a new taskRecord (in a tableView delegate helper method I call 'getMutableTaskRecord'), the new taskRecord entity is created and added to the student's to-many taskRecords. The inverse in the new taskRecord is set to the student automagically when I invoke [student addTaskRecordsObject:newTask]. Everything is perfect -- except that every time I create a taskRecord, I create a new Student! I can go into my student editor & delete them, but needless to say, something's not right.

Well, I've never seen Core Data create objects on its own. Reply and post some code.


_______________________________________________

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


References: 
 >Core Data Problem: Creating a child object creates unwanted parent (From: Kent Hauser <email@hidden>)
 >Re: Core Data Problem: Creating a child object creates unwanted parent (From: Jerry Krinock <email@hidden>)
 >Re: Core Data Problem: Creating a child object creates unwanted parent (From: Kent Hauser <email@hidden>)

  • Prev by Date: Re: initWIthFrame or awakeFromNib
  • Next by Date: Calling undo programatically
  • Previous by thread: Re: Core Data Problem: Creating a child object creates unwanted parent
  • Next by thread: 10.5.7 fixes the NSOperationQueue exception bug?
  • Index(es):
    • Date
    • Thread