I have a c++ class in my objective-c application (TC.h and TC.mm) and it has two methods as follows.
//TC.h
class TC
{
public:
void SetupPollTimer();
void Timeout();
}
//TC.mm
void TC::Timeout()
{
//Inside timer handler
}
void TC::SetupPollTimer()
{
//Setup Timer
//Want to use NSTimer here..
}
Basically when I call SetupPollTimer(), I want to start a NSTimer, with NSInvocation so that it repeatedly calls Timeout method. First off all, is this even possible. If so, I would really appreciate any thoughts or guidance regarding the same.