A QUICK sample/snippet on reading from a pipe.....
...
/**
* Reads all the data from the underlying server connection.
*
* @param success A block object to be executed when the request operation finishes successfully.
* This block has no return value and takes one argument: The object created from the response
* data of request.
*
* @param failure A block object to be executed when the request operation finishes unsuccessfully,
* or that finishes successfully, but encountered an error while parsing the resonse data.
* This block has no return value and takes one argument: The `NSError` object describing
* the network or parsing error that occurred.
*/
-(void) read:(void (^)(id responseObject))success
failure:(void (^)(NSError *error))failure;
...
...
id<AGPipe> projectPipe = // get a reference to a pipe....
[projectPipe read:^(id responseObject) {
// get's invoked when the response returns....
// do something with the data.... or just log it to the console.....
NSLog(@"Projects: %@", responseObject);
} failure:^(NSError *error) {
// do some proper error handling, if needed/desired...
}];