I have Objective-C
class in my iOS
project that implements Objective-C
and C
code in the same class. I changed the extension to .mm
and this part goes well. Now I want to set a C
method that will call the Objective-C
method in the same class. The problem I get is when I am trying to call self
from the C
method.
Here is the code :
void SetNotificationListeners(){
[self fireSpeechRecognition];
}
the error is :
Use of undeclared identifier 'self'
how can I manage this?