When my user logs in, I have multiple:
[[RKObjectManager sharedManager]
getObjectsAtPath:path
parameters:nil<br/> success:
^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) {
Now, I want to wait for all of them to finish to show the next page. I thought about putting them one inside another and return from the block until it reaches the last one, but this seems to kill the purpose of having async calls.
I thought about having a dictionary where I set the keys to YES and NO once a specific part is done, and wait for all the keys to be set to YES, but this seems prone to locks/concurrency problems.
So, any ideas to do this?!
Thanks!