File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,8 @@ typedef enum {
329
329
set on the mapping provider.
330
330
*/
331
331
- (void )loadObjectsAtResourcePath : (NSString *)resourcePath delegate : (id <RKObjectLoaderDelegate>)delegate ;
332
+ // Designated
333
+ - (void )loadObjectsAtResourcePath : (NSString *)resourcePath delegate : (id <RKObjectLoaderDelegate>)delegate objectLoader : (RKObjectLoader**)outObjectLoader ;
332
334
333
335
// //////////////////////////////////////////////////////
334
336
// / @name Mappable Object Loaders
Original file line number Diff line number Diff line change @@ -281,12 +281,20 @@ - (id)loaderForObject:(id<NSObject>)object method:(RKRequestMethod)method
281
281
}
282
282
283
283
- (void )loadObjectsAtResourcePath : (NSString *)resourcePath delegate : (id <RKObjectLoaderDelegate>)delegate
284
+ {
285
+ [self loadObjectsAtResourcePath: resourcePath
286
+ delegate: delegate
287
+ objectLoader: NULL ];
288
+ }
289
+
290
+ - (void )loadObjectsAtResourcePath : (NSString *)resourcePath delegate : (id <RKObjectLoaderDelegate>)delegate objectLoader : (RKObjectLoader**)outObjectLoader
284
291
{
285
292
RKObjectLoader *loader = [self loaderWithResourcePath: resourcePath];
286
293
loader.delegate = delegate;
287
294
loader.method = RKRequestMethodGET;
288
-
295
+
289
296
[loader send ];
297
+ *outObjectLoader = loader;
290
298
}
291
299
292
300
// ///////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments