Re: Core Data Problem: Creating a child object creates unwanted parent
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