I am using a c++ library using callback to inform about the progress of an operation.
Everything is working fine except this:
I need to have a function in my controller to be use as a c++ callback function.
I’ve tried a lot of things but none of them are working.
Do you know how we can manage this kind of thing?
Thanks 🙂
You have to define a c++-class in your .h with your callback methods, implementing the c++-interface. This class also keeps a delegate of your objC Class.
in your .m File after @end you specify the c++ methods. You may then use the delegate to perform selectors of your objC class
in .h
in .m