onExtensionResponse

Post here all your questions related with the SmartFoxServer iPhone API

Moderators: Lapo, Bax

Post Reply
tgate
Posts: 3
Joined: 05 Jul 2010, 18:30

onExtensionResponse

Post by tgate »

I don't really see this used in any of the examples provided in the api. But I'm trying to implement this in each of my classes, so the class that sends a xt msg will receive the response in that class. But from I have gotten from the examples, I have to send a msg through the app delegate and the delegate's onExtensionResponse always receives the message. Anyone know how to implement this?
jeeteshb
Posts: 7
Joined: 24 Jun 2010, 08:33
Location: India

Post by jeeteshb »

if you are using a navigation based application then you can use isKindOfClass to check for the current view controller class in the appdelegate.

eg.
-(void) onExtensionResponse
if([viewController isKindOfClass: [Account class]])
{
[viewController ExtensionResponse:evt];
}
Game Developer
Jeetesh Bhoria
Post Reply