A couple warnings from iPhone client

Post here all your questions related with the SmartFoxServer iPhone API

Moderators: Lapo, Bax

intomo
Posts: 28
Joined: 22 Nov 2010, 21:21
Location: Los Angeles

A couple warnings from iPhone client

Postby intomo » 27 Jan 2011, 04:12

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

Postby rahulvyas » 02 Feb 2011, 11:43

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: 28
Joined: 22 Nov 2010, 21:21
Location: Los Angeles

Postby intomo » 02 Feb 2011, 15:27

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

Return to “iPhone Objective-C API”

Who is online

Users browsing this forum: No registered users and 2 guests