Permalink
Browse files

Hook TwitterPlugin to Cordova version of JSONKit

Hook TwitterPlugin to Cordova version of JSONKit
  • Loading branch information...
1 parent 29df6a8 commit 27e183da7852e71e8d42f0bd67e3a53fdd9101d1 @RandyMcMillan RandyMcMillan committed Jan 6, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 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 27e183d

Please sign in to comment.