Skip to content
Browse files

Fix JSONKit error when creating data from an object.

  • Loading branch information...
1 parent f76401d commit 6e4b51583e197934207c8047c95bc68b381141c8 @scelis scelis committed Apr 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/MBJSON.m
View
2 Classes/MBJSON.m
@@ -149,7 +149,7 @@ id MBJSONObjectFromData(NSData *data, NSError **error)
case MBJSONLibraryJSONKit:
{
SEL selector = @selector(JSONDataWithOptions:error:);
- NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[data methodSignatureForSelector:selector]];
+ NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[object methodSignatureForSelector:selector]];
invocation.target = object;
invocation.selector = selector;

1 comment on commit 6e4b515

@pcasaretto

How selfish of me, should have checked the other cases :)

Please sign in to comment.
Something went wrong with that request. Please try again.