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.)
A couple warnings from iPhone client
Answer
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
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.
Rahul Vyas,
iPhone Developer.
Return to “iPhone Objective-C API”
Who is online
Users browsing this forum: No registered users and 46 guests