Browse files

Merge pull request #960 from RandyMcMillan/patch-2

Hook TwitterPlugin to Cordova version of JSONKit
  • Loading branch information...
2 parents 29df6a8 + 27e183d commit 2a013e853764b4346d4df033e1365ff7a9954a79 @devgeeks devgeeks committed Jan 7, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 iOS/Twitter/TwitterPlugin.m
View
6 iOS/Twitter/TwitterPlugin.m
@@ -125,7 +125,7 @@ - (void) getPublicTimeline:(NSMutableArray*)arguments withDict:(NSMutableDiction
if([urlResponse statusCode] == 200) {
NSString *dataString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
- NSDictionary *dict = [dataString objectFromJSONString];
+ NSDictionary *dict = [dataString cdvjk_objectFromJSONString];
jsResponse = [[CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:dict] toSuccessCallbackString:callbackId];
[dataString release];
}
@@ -181,7 +181,7 @@ - (void) getMentions:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)o
NSString *jsResponse;
if([urlResponse statusCode] == 200) {
NSString *dataString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
- NSDictionary *dict = [dataString objectFromJSONString];
+ NSDictionary *dict = [dataString cdvjk_objectFromJSONString];
jsResponse = [[CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:dict] toSuccessCallbackString:callbackId];
[dataString release];
}
@@ -258,7 +258,7 @@ - (void) getTWRequest:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)
NSString *jsResponse;
if([urlResponse statusCode] == 200) {
NSString *dataString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
- NSDictionary *dict = [dataString objectFromJSONString];
+ NSDictionary *dict = [dataString cdvjk_objectFromJSONString];
jsResponse = [[CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:dict] toSuccessCallbackString:callbackId];
[dataString release];
}

0 comments on commit 2a013e8

Please sign in to comment.