API Error ios5

Post here all your questions related with the SmartFoxServer iPhone 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
Post Reply