I have this API that I cannot modify in MyViewController.m file:
void my_Callback (void* context, xxxxxx::eventType::type eventtype, int code, const myconst)
{
//do stuff
}
I need to call this function:
-(void) update
{
self.textbox.test =@"new text";
}
but when I try to do
void my_Callback (void* context, xxxxxx::eventType::type eventtype, int code, const myconst)
{
//do stuff
[self update];
}
I get error because it can't reconize "self".
I tryed to do:
ViewController *newview = [[Viewcontroller alloc]init];
void my_Callback (void* context, xxxxxx::eventType::type eventtype, int code, const myconst)
{
//do stuff
[newview update];
}
and it finally goes into myfunction "update" but the new text is not set.
How can i get my text updated? Thanks