Skip to content

Commit

Permalink
Renamed didLoad* dispatcher methods to didRequest* for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mojodna committed Jan 25, 2011
1 parent d32d949 commit e5f20f8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/SimpleGeo+Context.m
Expand Up @@ -44,7 +44,7 @@ - (void)getContextForPoint:(SGPoint *)point

ASIHTTPRequest *request = [self requestWithURL:endpoint];
[request setUserInfo:[NSDictionary dictionaryWithObjectsAndKeys:
@"didLoadContext:", @"targetSelector",
@"didRequestContext:", @"targetSelector",
point, @"point",
nil
]];
Expand All @@ -62,7 +62,7 @@ - (void)getContextForAddress:(NSString *)address

ASIHTTPRequest *request = [self requestWithURL:endpoint];
[request setUserInfo:[NSDictionary dictionaryWithObjectsAndKeys:
@"didLoadContext:", @"targetSelector",
@"didRequestContext:", @"targetSelector",
address, @"address",
nil
]];
Expand All @@ -71,7 +71,7 @@ - (void)getContextForAddress:(NSString *)address

#pragma mark Dispatcher Methods

- (void)didLoadContext:(ASIHTTPRequest *)request
- (void)didRequestContext:(ASIHTTPRequest *)request
{
if ([delegate respondsToSelector:@selector(didLoadContext:forQuery:)]) {
NSMutableDictionary *query = [NSMutableDictionary dictionaryWithDictionary:[request userInfo]];
Expand Down
6 changes: 3 additions & 3 deletions src/SimpleGeo+Places.m
Expand Up @@ -172,7 +172,7 @@ - (void)getPlacesNear:(SGPoint *)point

NSMutableArray *queryParams = [NSMutableArray array];
NSMutableDictionary *userInfo = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"didLoadPlaces:", @"targetSelector",
@"didRequestPlaces:", @"targetSelector",
point, @"point",
nil];

Expand Down Expand Up @@ -217,7 +217,7 @@ - (void)getPlacesNearAddress:(NSString *)address

NSMutableArray *queryParams = [NSMutableArray array];
NSMutableDictionary *userInfo = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"didLoadPlaces:", @"targetSelector",
@"didRequestPlaces:", @"targetSelector",
address, @"address",
nil];

Expand Down Expand Up @@ -305,7 +305,7 @@ - (void)didDeletePlace:(ASIHTTPRequest *)request
}
}

- (void)didLoadPlaces:(ASIHTTPRequest *)request
- (void)didRequestPlaces:(ASIHTTPRequest *)request
{
if ([delegate respondsToSelector:@selector(didLoadPlaces:forQuery:)]) {
NSDictionary *jsonResponse = [[request responseData] yajl_JSON];
Expand Down
4 changes: 2 additions & 2 deletions src/SimpleGeo.m
Expand Up @@ -137,7 +137,7 @@ - (void)getFeatureWithHandle:(NSString *)handle
SIMPLEGEO_API_VERSION, handle];

NSMutableDictionary *userInfo = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"didLoadFeature:", @"targetSelector",
@"didRequestFeature:", @"targetSelector",
handle, @"handle",
nil];

Expand Down Expand Up @@ -202,7 +202,7 @@ - (void)requestFailed:(ASIHTTPRequest *)request

#pragma mark Dispatcher Methods

- (void)didLoadFeature:(ASIHTTPRequest *)request
- (void)didRequestFeature:(ASIHTTPRequest *)request
{
NSString *handle = [[request userInfo] objectForKey:@"handle"];

Expand Down

0 comments on commit e5f20f8

Please sign in to comment.