As described in this white paper on Objective-C ++ , you may not have a C ++ Object pointer inside Objective-C classes. They are properly built and destroyed if you use the -fobjc-call-cxx-cdtors in GCC / clang.
The situation for @sythesiz not a C ++ pointer @property not so clear, because there is no documentation. The behavior sometimes depends on the compiler used, as discussed, for example. into this question SO . The Clang team is trying to implement the right things, but I donโt think it is available yet.
So stick with a pointer to C ++ classes if you want @synthesize . Otherwise, implement your own setter and getter.
source share