What is Objective C++?

Saurabh picture Saurabh · Sep 10, 2010 · Viewed 76k times · Source

What is Objective C++ and can I use this language in Xcode?

Answer

Doches picture Doches · Sep 10, 2010

Objective-C++ is simply source code that mixes Objective-C classes and C++ classes (two entirely unrelated entities). Your C++ code will work, just as before, and the resulting executable will be linked with the Objective-C runtime, so your Objective-C classes will work as well. You can definitely use it in Xcode -- name your files with the .mm extension.

Also, you might want to read Apple's (sadly deleted, but archived) documentation on Objective-C++.