Skip to content

Instantly share code, notes, and snippets.

View patzearfoss's full-sized avatar

Pat Zearfoss patzearfoss

View GitHub Profile
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