I am following this URL but i have got struck that How can i pass my objective c++(.mm) instance to c++ class. Calling Objective-C method from C++ method?
MyCPPClass.cpp
#include "MyCPPClass.h"
#include "MyObject-C-Interface.h"
int MyCPPClass::someMethod (void *objectiveCObject, void *aParameter)
{
// To invoke an Objective-C method from C++, use
// the C trampoline function
return MyObjectDoSomethingWith (objectiveCObject, aParameter);
}
How can I call MyCPPClass::someMethod (void *objectiveCObject, void *aParameter)
from objective c++(.mm) what can I pass the value for void *objectiveCObject
from objective c++(.mm) class.