A couple warnings from iPhone client

Post here all your questions related with the SmartFoxServer iPhone API

Moderators: Lapo, Bax

Post Reply
intomo
Posts: 51
Joined: 22 Nov 2010, 21:21
Location: Los Angeles

A couple warnings from iPhone client

Post by intomo »

I have integrated the iPhone client into my app.
I'm getting a few warnings.
Any suggestions?

/INFSmartFoxiPhoneClient.m: In function '-[INFSmartFoxiPhoneClient connect:port:]':
/INFSmartFoxiPhoneClient.m:884: warning: class 'INFSmartFoxiPhoneClient' does not implement the 'NSStreamDelegate' protocol
warning: class 'INFSmartFoxiPhoneClient' does not implement the 'NSStreamDelegate' protocol

/RootViewController.m: In function '-[RootViewController onRoomVariablesUpdate:]':
warning: no '-getVariables' method found
(Messages without a matching method signature
will be assumed to return 'id' and accept
'...' as arguments.)
rahulvyas
Posts: 19
Joined: 05 Jul 2010, 05:23
Location: Jaipur,Rajasthan
Contact:

Answer

Post by rahulvyas »

For the point 1.

Replace your @interface in INFSmartFoxiPhoneClient.h

from this
@interface INFSmartFoxiPhoneClient : NSObject<SFSHttpConnectionDelegate>

with this
@interface INFSmartFoxiPhoneClient : NSObject<SFSHttpConnectionDelegate,NSStreamDelegate>

For the point 2.
just import INFSmartFoxRoom.h in your .m file
Thanks & Regards,
Rahul Vyas,
iPhone Developer.
intomo
Posts: 51
Joined: 22 Nov 2010, 21:21
Location: Los Angeles

Post by intomo »

Thanks so much for your help! That fixed all the issues. :D
Post Reply