Take it directly from the source: Apple has documentation on using C ++ with Objective-C .
In fact, this is not so much, in my opinion, an attempt to keep parts of C ++ and Objective-C as clean as possible.
In your case, this is natural:
- limit definition of C ++ classes and other C ++ models
- restrict part of Objective-C to code related to viewing and using the C ++ model
I donβt know of any simple simple examples, but any cross-platform project with its own GUI on Mac uses the same approach. One of the purest examples is the source of Chromium .
source share