• 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 14:43:00 -0700


Well, I don't know what you're doing wrong. Actually I'm not sure what is the undesired behavior your are seeing. But let me explain something...


That department creation you are referring to in the DepartmentAndEmployees sample occurs within the document's - initWithType:error: implementation. This is a slightly odd implementation, but it is to satisfy the slightly odd design requirement that each document have one and only one 'department' object, and that this object be inserted immediately when a new document is created.

The 'department' is thus created when the document is created, not when a child is created.

_______________________________________________

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: Core Data Problem: Creating a child object creates unwanted parent
      • From: Kent Hauser <email@hidden>
References: 
 >Core Data Problem: Creating a child object creates unwanted parent (From: Kent Hauser <email@hidden>)

  • Prev by Date: Re: struggling with binding, NSOutlineView, and NSTableView
  • Next by Date: Re: struggling with binding, NSOutlineView, and NSTableView
  • Previous by thread: Core Data Problem: Creating a child object creates unwanted parent
  • Next by thread: Re: Core Data Problem: Creating a child object creates unwanted parent
  • Index(es):
    • Date
    • Thread