I have an abstract class and his concrete class implementation. What I would like to do is to expose the concrete class inside an iOS application (Objective-C) and use protocols to dispatch the events to a ViewController.
The idea is to add an objective C delegate, that conforms an adHoc protocol, to this concrete Class. Any Idea how to achieve it?
Unfortunately I read that Objective-C++ cannot inherits from a C++ class.
Thank you in advance.
Try a has-a relationship. Either the objective C++ object has-a C++ object or vice versa. Then make them aware of each other enough for the objective C++ object to relay messages to the C++ object.
If you declared a weak pointer to id, you could declare an abstract delegate (a category in NSObject), then call methods freely in the CPP source. Simply import the file that contains the abstract delegate then implement the methods themselves in the ObjC class, and you get a delegate without declaring an actual delegate.
an objective c++ class can't inherit from a c++ class but it can contain one