Calling Objective-C parent from C++ object
问题 Creating Audio Unit Extensions on iOS requires mixing of C++ and Objective-C classes. As a result I now have an Objective-C object with a C++ object as one of its variables. I would like the C++ child object to be able to notify its Objective-C parent/owner of certain state changes. In pseudo-code: void cppChildObject::callMom() { objectiveCParent::notificationMethod(); } Is this possible in an elegant way? 回答1: It depends on how you define elegant... This is possible in a fairly elegant way