Page 1 of 1

API Error ios5

Posted: 18 Nov 2011, 12:57
by Julian
Hi,
I've noticed that there is an data submit error on ios5.

In the Class INFSmartFoxObjectSerializer you check for

"NSCFNumber" ,
"NSCFBoolean",
"NSCFString"

to built the String.
But in the new iOS, the Classes have the Name:

"__NSCFNumber"
"__NSCFString"

I am looking forward to see an update.


Code: Select all

   if ([[varValue className] isEqualToString:@"NSCFBoolean"]) {
      t = @"b";
      o = [varValue stringValue];
   }
   else if ([[varValue className] isEqualToString:@"NSCFNumber"]) {
      t = @"n";
      o = [varValue stringValue];
   }      
   else if ([varValue isKindOfClass:[NSString class]] || [[srcObj className] isEqualToString:@"NSCFString"]) {   
      t = @"s";       o = [INFSmartFoxEntities encodeEntities:varValue];
   }
   else if ([varValue isKindOfClass:[NSNull class]]) {
      t = @"x";
      o = @"";
   }
   

Posted: 21 Nov 2011, 10:16
by Bax
Thank you for reporting.

Posted: 28 Nov 2011, 09:24
by ThomasLund
Hi Julian (and Bax too)

Just wanted to say, that this forum part is for the C# API - not the objective-c one.

The error you report hints extremely for an obj-c API error. In case this is NOT so, then please reply. Else I'd suggest posting over here for SFS1:

viewforum.php?f=14

/Thomas