Refcounted pointers on iPhone
Posted
by anon
on Stack Overflow
See other posts from Stack Overflow
or by anon
Published on 2010-04-10T07:46:02Z
Indexed on
2010/04/10
7:53 UTC
Read the original article
Hit count: 363
1) Refcounted pointers need stack variables to have constructors / destructors called at predictable places.
2) Objective-C, afaik, does not support the above.
3) The cocoa libraries are bound in Objective-C, not C++.
Thus, my question: is there a easy way to use the Cocoa libraries, yet still have most of my app in C++ (and thus use my refcounted pointers)?
Thanks!
(iPhone in the title since this is mainly targeted at the iPhone)
© Stack Overflow or respective owner