If one searches for mixing objective-c and c++ this link invariably comes up as THE solution.
Using C++ With 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.
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.
While Objective-C is still supported by Apple and will likely not be deprecated anytime soon, there will be no updates to the language. Objective-C is as good as it's ever going to get.
There are a lot of indicators telling us there's still a ton of legacy Objective-C code, both from Apple and from other developers, that's still in use.
Objective-C is so pervasive in iOS that it's impossible to completely remove it. Apple continues to maintain libraries written in Objective-C, so we should expect Objective-C to be treated as a (mostly) first class language in iOS. At other companies, legacy code remains.
First released in 2014, Swift was developed as a replacement for Apple's earlier programming language Objective-C, as Objective-C had been largely unchanged since the early 1980s and lacked modern language features.
The article is still available on the WayBack Machine (web.archive.org
). The latest snapshot appears to be from december 31, 2008.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With