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

Postby daveatscreach » 26 Sep 2013, 10:11

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: 4327
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: SFSRoom objects are missing information

Postby Bax » 26 Sep 2013, 13:12

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

Postby daveatscreach » 26 Sep 2013, 15:48

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

Postby daveatscreach » 26 Sep 2013, 15:49

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

Re: SFSRoom objects are missing information

Postby Lapo » 26 Sep 2013, 16:13

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

Postby daveatscreach » 26 Sep 2013, 16:16

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

Re: SFSRoom objects are missing information

Postby Lapo » 01 Oct 2013, 13:12

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

Postby daveatscreach » 01 Oct 2013, 13:25

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: 19602
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SFSRoom objects are missing information

Postby Lapo » 01 Oct 2013, 13:39

thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
daveatscreach
Posts: 15
Joined: 26 Sep 2013, 09:28

Re: SFSRoom objects are missing information

Postby daveatscreach » 31 Mar 2014, 09:05

Hi Lapo.

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

Re: SFSRoom objects are missing information

Postby Lapo » 31 Mar 2014, 11:04

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

Postby daveatscreach » 31 Mar 2014, 11:08

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

Re: SFSRoom objects are missing information

Postby Lapo » 31 Mar 2014, 11:08

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

Postby daveatscreach » 31 Mar 2014, 11:16

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

Postby daveatscreach » 31 Mar 2014, 11:26

Everything looks fixed. Thanks for this

8)

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 1 guest