Sergio Rodríguez Prado
Sergio Rodríguez Prado
First than all if you set a defualt ACL changing the ACL of an object wont work as the the new ACL you create uses the defualt as a template,...
- (id)insertLocalEntityForClassName:(NSString*)className { NSManagedObjectContext *moc_ = [NSManagedObjectContext defaultContext]; id managedObject = [NSEntityDescription insertNewObjectForEntityForName:className inManagedObjectContext:moc_]; if ([managedObject respondsToSelector:@selector(ownerId)]) { [managedObject setOwnerId:[PFUser currentUser].objectId]; } FTASyncParent *localObject = (id)managedObject; localObject.defaultACL = YES; return...
Its very important to set the ownerId property in FTASyncParent class, and add it in the [FTAParseSync getObjectsOfClass:(NSString *)className updatedSince:(NSDate *)lastUpdate] query if you alter the ACL for objects and...
yeah sorry for that, but as i told you i was still working on it, and it resulted to be a hell, working with roles its not as easy as...
p.d. i'm mexican sorry for my english :)
Oh, yeah you need a pro account to create more than one role i forgot about that even when doing my early testing