Browse files

encoding of Nu 't' symbol.

  • Loading branch information...
1 parent 9ed2396 commit dc3aa9c44cfdf773ccaef6c4139a57b649dfca33 Tim Burks committed Nov 26, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 objc/NuBSON.m
View
5 objc/NuBSON.m
@@ -180,6 +180,11 @@ void add_object_to_bson_buffer(bson_buffer *bb, id key, id object)
bson_append_finish_object(arr);
}
}
+ else if (NuSymbol && [object isKindOfClass:[NuSymbol class]]) {
+ if ([[object stringValue] isEqualToString:@"t"]) {
+ bson_append_bool(bb, name, YES);
+ }
+ }
else if ([object respondsToSelector:@selector(cStringUsingEncoding:)]) {
bson_append_string(bb, name,[object cStringUsingEncoding:NSUTF8StringEncoding]);
}

0 comments on commit dc3aa9c

Please sign in to comment.