Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apple's Using C++ with Objective-C article is gone... Can anyone give me a new article, or help me find the old one?

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.

like image 968
juckele Avatar asked Nov 12 '11 16:11

juckele


People also ask

Is Objective-C still used by Apple?

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.

Is Objective-C still used in 2022?

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.

Is Objective-C going away?

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.

When did Apple switch from Objective-C to Swift?

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.


1 Answers

The article is still available on the WayBack Machine (web.archive.org). The latest snapshot appears to be from december 31, 2008.

like image 82
Fred Foo Avatar answered Nov 09 '22 08:11

Fred Foo