Okay, I\'ve read half a dozen threads on this subject, but none of the solutions appear to address exact needs.
Question:
How does a Pure C (.c) fun
I hope i understand you correctly!
You can do this via callback-function.
In you C file use this:
Define the callback-type
eventcallback g_callback;
Implement callback-class (executed by objective-c code)
void comm_set_callback(eventcallback callback){
g_callback = callback;
}
in objective-c:
Set the callback (i.e.: in viewDidLoad())
comm_set_callback(&testfkt);
C-Method called from extern C-function
void testfkt(){
[refToSelf testmethod];
}
Objective-C Method called from C-Method testfkt
-(void)testmethod{
...
}