Created
November 15, 2011 23:51
-
-
Save blakewatters/1368793 to your computer and use it in GitHub Desktop.
sendLoaderToResourcePath:usingBlock helper for sending object loader from RKObjectManager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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