Skip to content

Instantly share code, notes, and snippets.

@blakewatters
Created November 15, 2011 23:51
Show Gist options
  • Save blakewatters/1368793 to your computer and use it in GitHub Desktop.
Save blakewatters/1368793 to your computer and use it in GitHub Desktop.
sendLoaderToResourcePath:usingBlock helper for sending object loader from RKObjectManager
- (RKObjectLoader *)sendLoaderToResourcePath:(NSString *)resourcePath usingBlock:(void (^)(RKObjectLoader *objectLoader))block {
RKObjectLoader* loader = [self objectLoaderWithResourcePath:resourcePath delegate:nil];
loader.serializationMIMEType = self.serializationMIMEType;
// Yield to the block for setup
block(loader);
[loader send];
return loader;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment