Re: [Hessianobjc-user] encoding Dictionary with NSNull value
Status: Alpha
Brought to you by:
cocoa_dood
|
From: Byron W. <by...@bl...> - 2006-11-04 18:52:24
|
Thanks Tore,
your changes have been committed and the unit tests have been updated
for this case.
On Nov 3, 2006, at 12:59 PM, Tore Halset wrote:
> Hello.
>
> Just a small fix to allow encoding of a NSDictionary with NSNull
> values.
>
> - Tore.
> <p.txt>
> Index: BBSHessianEncoder.m
> ===================================================================
> --- BBSHessianEncoder.m (revision 84)
> +++ BBSHessianEncoder.m (working copy)
> @@ -212,6 +212,9 @@
> else if([anyObject isKindOfClass:[NSNumber class]]) {
> [self encodeNumber:anyObject];
> }
> + else if([anyObject isKindOfClass:[NSNull class]]) {
> + [self encodeNil];
> + }
> else if([objClass isKindOfClass:[NSValue class]] ||
> [classString isEqualToString:@"NSConcreteValue"]) {
> }
>
|