On Mar 11, 2010, at 8:11 PM, Eric Lin wrote: > In using Core Data, I was under the impression that if I do this: > > [department addEmployeesObject:employee] // department now has 1 employee > [moc deleteObject:employee] > > Then department will end up with no employees, assuming that the inverse > relationship is set correctly. > > But it turns out within the same run loop, if I inspect > [department.employees count], then the value is 1. But in the next run loop, > the value becomes 0, which is what it should be. > > Is my observation accurate or is something wrong?
Deletes are propagated at the end of he current event, or at save time, depending how the MOC is configured. Jim _______________________________________________ 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