Room_Find_result problem!

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

pkrmf
Posts: 1
Joined: 16 May 2012, 11:19

Room_Find_result problem!

Postby pkrmf » 16 May 2012, 11:24

Hi!

I'm having some problems about trying to look for a room. Actually I'm using this to search the room:

Code: Select all

MatchExpression *exp = [MatchExpression expressionWithVarName:RoomProperties_NAME condition:[StringMatch stringMatchEquals] value:@"Marc"];
[_smartFox send:[FindRoomsRequest requestWithExpr:exp]];


With this I'm trying to find a room with the name:Marc, an after this search i want to know if some room has been found with this name or not. But the problem is that i don't have any idea how to use that. I've been looking in the documentation about the SFSEvent Room_Find_result but it says something about a List<Room> but in objective C its impossible to use a List<Room>. I just want to know how to solve this problem! Thanks!
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Room_Find_result problem!

Postby rjgtav » 16 May 2012, 20:12

Hello.
In the Objective-C client API Documentation page of that event, it says that it returns a NSArray which contains all the rooms that were found. Are you using the right documentation?
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 35 guests