On 2010 Jul 09, at 07:19, Keary Suska wrote: > On Jul 9, 2010, at 6:12 AM, Jerry Krinock wrote: > >> An interesting question is how this happens in the DepartmentAndEmployees >> sample code. When I create a document with an employee, save the file and >> dump it with sqlite3, it appears that the Employee is related to the >> Department. But I looked at that code for a few minutes yesterday and can't >> see how it happened. The only time that an Employee is set to a Department >> or vice versa is in the -paste method, but that doesn't run. Does anyone >> know? > > Any actions on the employee array controller are manipulating the employees > relationship of department, so it is handled automagically by CD. Do you mean > other than that?
No wonder I didn't find it. I only searched the code. As you noted, Employees' array controller's Content Set is bound to Department Controller. Foiled again by hidden settings in Interface Builder! Sometimes I think I should stop using Interface Builder and do everything in code until Apple extends Xcode's Project Find to include xib files._______________________________________________ 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