If one searches for mixing objective-c and c++ this link invariably comes up as THE solution.
如果您搜索混合objective-c和c++,这个链接一定会作为解决方案出现。
使用c++和objective - C
Unfortunately it's dead. Does anyone know where this article has moved, have an alternative article, or have some code demonstrating two way chatter between objective-c and c++ objects (calling both from the other). I can architect around an inability to call objective-c from c++, but I would much prefer to have the freedom to perform callbacks.
不幸的是,它死了。有没有人知道这篇文章的移动位置,有没有别的文章,或者有一些代码演示objective-c和c++对象之间的双向对话(同时调用另一个对象)。我可以对不能从c++调用objective-c进行架构,但是我更希望有执行回调的*。
I have gotten as far as instantiating a c++ object and calling methods on it from objective-c++, but I haven't been able to figure out how to get the c++ to call back or how to properly declare the c++ object in the objective-c++ object's header file.
我已经从objective-c++实例化了一个c++对象并调用了它的方法,但是我还没有弄清楚如何让c++回调或者如何在objective-c++对象的头文件中正确地声明c++对象。
1 个解决方案
#1
8
The article is still available on the WayBack Machine (web.archive.org
). The latest snapshot appears to be from december 31, 2008.
这篇文章仍然可以在WayBack机器上找到(web.archive.org)。最新的快照似乎是2008年12月31日。
#1
8
The article is still available on the WayBack Machine (web.archive.org
). The latest snapshot appears to be from december 31, 2008.
这篇文章仍然可以在WayBack机器上找到(web.archive.org)。最新的快照似乎是2008年12月31日。