API Error ios5

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

Moderators: Lapo, Bax

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

API Error ios5

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

Post by Bax »

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

Post 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:

http://forums.smartfoxserver.com/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
Post Reply