How to make NSManagedObjectContext dirty (hasChanges = YES) Manually

The problem is this: when you set the undefined transition attribute in the method -(void)didSaveafter the first, save:it does not make the context dirty in iOS 4.3 (Simulator), but makes it dirty in iOS 5.0 Simulator.

I need the same behavior in iOS 4.3.

So - what is the cheapest way to make the context dirty between 2 (BOOL)save:calls.

Once again - in iOS 5, the transient attribute in -(void)didSavemakes the context dirty, but not on ios 4.3.

and more - I need to make all objects that have been changed in the didSavedirty method

+2
source share
1 answer

Have you tried to subclass NSManagedObjectContext and return true for hasChanges or the like?

0
source

Source: https://habr.com/ru/post/1748989/


All Articles