iOS with Parse.com : save objects bidirectionally -



iOS with Parse.com : save objects bidirectionally -

i have next setup

@interface pmobject : pfobject <pfsubclassing> @property (nonatomic, strong) pmuser *creator; --- @interface pmuser : pfuser <pfsubclassing> @property (nonatomic, strong) pmobject *currentobject;

reading similar problem this question saving new pmobject in next way:

pmobject *object = [pmobject object]; [object setcreator:[pmuser currentuser]]; [object saveinbackgroundwithblock:^(bool succeeded, nserror *error) { if(succeeded){ [[pmuser currentuser] setcurrentobject:object]; //this point reached expected [[pmuser currentuser] saveinbackgroundwithblock:^(bool succeeded, nserror *error) { //this point never reached ? }]; } }];

regardless of how obvious seems, not working expected. happy help !

ios save parse.com

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -