You need to make a .mm file, and then you can use the features outlined here. See also a reference to Apple's old documentation on the hybrid language.
Storing Objective-C class instance in C++ class [closed]
-
29-06-2022 - |
Question
Is there a way to store an Objective-C class instance inside of a C++ class as a member?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow