Cleaned up warnings and initialization of the request used by the object loader

This commit is contained in:
Blake Watters
2010-10-12 14:59:40 -04:00
parent 30c96c8bf1
commit b71a85416a
4 changed files with 7 additions and 5 deletions

View File

@@ -106,8 +106,8 @@ static RKObjectManager* globalManager = nil;
return nil;
}
NSURL* URL = [self.client URLForResourcePath:resourcePath];
RKRequest* request = [[[RKRequest alloc] initWithURL:URL] autorelease];
// Grab request through client to get HTTP AUTH & Headers
RKRequest* request = [self.client requestWithResourcePath:resourcePath delegate:nil callback:nil];
RKObjectLoader* loader = [RKObjectLoader loaderWithMapper:self.mapper request:request delegate:delegate];
loader.objectClass = objectClass;