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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to