SFSRoom objects are missing information

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

Moderators: Lapo, Bax

daveatscreach
Posts: 15
Joined: 26 Sep 2013, 09:28

SFSRoom objects are missing information

Post by daveatscreach »

When inspecting any returned SFSRoom object the userCount property returns the correct value but the userList returns an empty array. I guess this is why the isJoined property also returns NO and the method getUserByName always returns nil.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: SFSRoom objects are missing information

Post by Bax »

You must join the Room before those informations are available.
Paolo Bax
The SmartFoxServer Team
daveatscreach
Posts: 15
Joined: 26 Sep 2013, 09:28

Re: SFSRoom objects are missing information

Post by daveatscreach »

I have joined the room. i can send messages to it without receiving [SFS WARN] You are not joined in the target Room.
daveatscreach
Posts: 15
Joined: 26 Sep 2013, 09:28

Re: SFSRoom objects are missing information

Post by daveatscreach »

i should say I'm inspecting room objects that are returned in delegate method event params.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFSRoom objects are missing information

Post by Lapo »

What is the version of the API.
Try printing the version property of the main SFS object.

Maybe you are using and old version. I don't think we have ever seen a problem like this, nor it's ever been reported. Take in consideration that all our iOS examples work by correctly displaying the room list, so it might be something else.

let us know.
Lapo
--
gotoAndPlay()
...addicted to flash games
daveatscreach
Posts: 15
Joined: 26 Sep 2013, 09:28

Re: SFSRoom objects are missing information

Post by daveatscreach »

v1.1.8
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFSRoom objects are missing information

Post by Lapo »

We're currently working on a major update to make the API pure ARC.
As soon as we're finished we'll go through some of the bug reports including yours.

Meanwhile can you explain how this should work in details?
How many rooms are you joining at once and which of the joined rooms doesn't seem to report the correct data?
Can you give us a step by step description of your steps?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
daveatscreach
Posts: 15
Joined: 26 Sep 2013, 09:28

Re: SFSRoom objects are missing information

Post by daveatscreach »

I'm currently putting together a couple of test projects for you to outline the problems i am seeing. I will email over when complete.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFSRoom objects are missing information

Post by Lapo »

thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
daveatscreach
Posts: 15
Joined: 26 Sep 2013, 09:28

Re: SFSRoom objects are missing information

Post by daveatscreach »

Hi Lapo.

Did you receive the example project? Have you made any progress with this?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFSRoom objects are missing information

Post by Lapo »

Hi,
since we're talking about something that was posted 6 months ago I am not sure. Sorry.
Which email did you send it from?
Lapo
--
gotoAndPlay()
...addicted to flash games
daveatscreach
Posts: 15
Joined: 26 Sep 2013, 09:28

Re: SFSRoom objects are missing information

Post by daveatscreach »

I will private message you my email
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFSRoom objects are missing information

Post by Lapo »

Additional note: we have updated the API since then. Have you tested with the latest release?
I think the problem has been addressed.
http://www.smartfoxserver.com/download/sfs2x#p=client
Lapo
--
gotoAndPlay()
...addicted to flash games
daveatscreach
Posts: 15
Joined: 26 Sep 2013, 09:28

Re: SFSRoom objects are missing information

Post by daveatscreach »

I may have been a bit dumb and had a old version in my project while thinking i had the project pointing to the latest version of the SDK.

I will test and report back. Thanks for the quick response

:)
daveatscreach
Posts: 15
Joined: 26 Sep 2013, 09:28

Re: SFSRoom objects are missing information

Post by daveatscreach »

Everything looks fixed. Thanks for this

8)
Post Reply