This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSSet *waitingTemp = [self.waitingObjects copy]; | |
for (NSManagedObject *object in waitingTemp) | |
{ | |
if (! [object hasDependencies]) | |
{ | |
__weak typeof (self) weakSelf = self; | |
[self.waitingObjects removeObject:object]; | |
[self.dispatchedObjects addObject:object]; | |
[SBManagedObjectHelper saveObject:object | |
syncToServer:YES |
NewerOlder