API Error ios5

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

Julian
Posts: 2
Joined: 18 Nov 2011, 12:15

API Error ios5

Postby Julian » 18 Nov 2011, 12:57

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 = @"";
   }
   
User avatar
Bax
Site Admin
Posts: 4381
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 21 Nov 2011, 10:16

Thank you for reporting.
Paolo Bax
The SmartFoxServer Team
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 28 Nov 2011, 09:24

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
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 1 guest