[Hessianobjc-user] NSDate leo issue and svn url
Status: Alpha
Brought to you by:
cocoa_dood
|
From: Tore H. <ha...@pv...> - 2007-12-08 23:20:03
|
Hello. The svn url mentioned on top of http://www.bluebearstudio.com/hessianobjc/ does not seem to work anymore. I think the new one is svn co https://hessianobjc.svn.sourceforge.net/svnroot/hessianobjc/ trunk hessianobjc I just tried my project with Leopard and got an issue encoding NSDate. Looks like the classString now is "__NSCFDate" instead of "NSCFDate". I therefore suggest the following patch and recomend to not rely on class names. Index: BBSHessianEncoder.m =================================================================== --- BBSHessianEncoder.m (revision 90) +++ BBSHessianEncoder.m (working copy) @@ -221,7 +221,7 @@ else if([classString isEqualToString:@"NSCFDictionary"]) { [self encodeDictionary:anyObject]; } - else if([classString isEqualToString:@"NSCFDate"] || + else if([anyObject isKindOfClass:[NSDate class]] || [anyObject isKindOfClass:[NSCalendarDate class]]) { [self encodeDate:anyObject]; } Regards, - Tore. |