Multi-property "transactions" in Core Data / NSManagedObject / NSFetchedResultsController?
Posted
by Martijn Thé
on Stack Overflow
See other posts from Stack Overflow
or by Martijn Thé
Published on 2010-02-04T23:54:36Z
Indexed on
2010/05/07
5:08 UTC
Read the original article
Hit count: 253
Hi,
Is it possible to set multiple properties of an NSManagedObject and have the NSFetchedResultsController call controllerDidChangeContent: only once?
In other words, is it possible to say something like:
[managedObject beginChanges];
[managedObject setPropertyA:@"Foo"];
[managedObject setPropertyB:@"Bar"];
[managedObject commitChanges];
and then have the NSFetchedResultsController call controllerDidChangeContent: (and the other methods) only one time?
Thanks!
© Stack Overflow or respective owner