> On 12 Feb 2015, at 07:27, Richard Charles <rcharles...@gmail.com> wrote: > > I have a Core Data in-memory store. There is a managed object which uses KVO > on a to-many relationship property of itself. > > When an object at the other end of the relationship is deleted using > [managedObjectContext deleteObject:object] the KVO change notification is not > sent right away. > > What triggers or will trigger the KVO change notification? > > Richard Charles >
committing the core data changes removes them from all the relationships and fires KVO changes. see propagatesDeletesAtEndOfEvent: and commitPendingChanges. In AppKit usually deletes are propagated once around the event loop, in other places they won’t propagate until there’s a save or commitPendingChanges: is called. _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com