Skip to content

Instantly share code, notes, and snippets.

@rentzsch
Created June 26, 2011 17:50
Show Gist options
  • Save rentzsch/1047798 to your computer and use it in GitHub Desktop.
Save rentzsch/1047798 to your computer and use it in GitHub Desktop.
+numberWithBool: vs +numberWithInt: in ASCII plists: FIGHT!
// JSTalk:
var a = [NSMutableDictionary dictionary];
[a setObject: [NSNumber numberWithBool:YES] forKey:@"Bool"];
[a setObject: [NSNumber numberWithInt:1] forKey:@"Number"];
[a description];
=>
{
Bool = 1;
Number = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment