Check in AFJSONDecode as well
This commit is contained in:
parent
d7089fd2a3
commit
f7a00cfa51
1 changed files with 12 additions and 4 deletions
|
|
@ -142,7 +142,9 @@ id AFJSONDecode(NSData *data, NSError **error) {
|
||||||
|
|
||||||
NSUInteger parseOptionFlags = 0;
|
NSUInteger parseOptionFlags = 0;
|
||||||
[invocation setArgument:&parseOptionFlags atIndex:2]; // arguments 0 and 1 are self and _cmd respectively, automatically set by NSInvocation
|
[invocation setArgument:&parseOptionFlags atIndex:2]; // arguments 0 and 1 are self and _cmd respectively, automatically set by NSInvocation
|
||||||
[invocation setArgument:error atIndex:3];
|
if (error != NULL) {
|
||||||
|
[invocation setArgument:error atIndex:3];
|
||||||
|
}
|
||||||
|
|
||||||
[invocation invoke];
|
[invocation invoke];
|
||||||
[invocation getReturnValue:&JSON];
|
[invocation getReturnValue:&JSON];
|
||||||
|
|
@ -162,7 +164,9 @@ id AFJSONDecode(NSData *data, NSError **error) {
|
||||||
|
|
||||||
NSUInteger yajlParserOptions = 0;
|
NSUInteger yajlParserOptions = 0;
|
||||||
[invocation setArgument:&yajlParserOptions atIndex:2]; // arguments 0 and 1 are self and _cmd respectively, automatically set by NSInvocation
|
[invocation setArgument:&yajlParserOptions atIndex:2]; // arguments 0 and 1 are self and _cmd respectively, automatically set by NSInvocation
|
||||||
[invocation setArgument:error atIndex:3];
|
if (error != NULL) {
|
||||||
|
[invocation setArgument:error atIndex:3];
|
||||||
|
}
|
||||||
|
|
||||||
[invocation invoke];
|
[invocation invoke];
|
||||||
[invocation getReturnValue:&JSON];
|
[invocation getReturnValue:&JSON];
|
||||||
|
|
@ -173,7 +177,9 @@ id AFJSONDecode(NSData *data, NSError **error) {
|
||||||
invocation.selector = _NXJsonParserSelector;
|
invocation.selector = _NXJsonParserSelector;
|
||||||
|
|
||||||
[invocation setArgument:&data atIndex:2]; // arguments 0 and 1 are self and _cmd respectively, automatically set by NSInvocation
|
[invocation setArgument:&data atIndex:2]; // arguments 0 and 1 are self and _cmd respectively, automatically set by NSInvocation
|
||||||
[invocation setArgument:error atIndex:3];
|
if (error != NULL) {
|
||||||
|
[invocation setArgument:error atIndex:3];
|
||||||
|
}
|
||||||
[invocation setArgument:&nullOption atIndex:4];
|
[invocation setArgument:&nullOption atIndex:4];
|
||||||
|
|
||||||
[invocation invoke];
|
[invocation invoke];
|
||||||
|
|
@ -189,7 +195,9 @@ id AFJSONDecode(NSData *data, NSError **error) {
|
||||||
[invocation setArgument:&data atIndex:2]; // arguments 0 and 1 are self and _cmd respectively, automatically set by NSInvocation
|
[invocation setArgument:&data atIndex:2]; // arguments 0 and 1 are self and _cmd respectively, automatically set by NSInvocation
|
||||||
NSUInteger readOptions = 0;
|
NSUInteger readOptions = 0;
|
||||||
[invocation setArgument:&readOptions atIndex:3];
|
[invocation setArgument:&readOptions atIndex:3];
|
||||||
[invocation setArgument:error atIndex:4];
|
if (error != NULL) {
|
||||||
|
[invocation setArgument:error atIndex:4];
|
||||||
|
}
|
||||||
|
|
||||||
[invocation invoke];
|
[invocation invoke];
|
||||||
[invocation getReturnValue:&JSON];
|
[invocation getReturnValue:&JSON];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue