views:

88

answers:

1

Hello,

I would like to use a C++ class in an objective c application. How to achieve this?

Thanks for your helps :)

+4  A: 

You can do this using "Objective-C++". You should read Apple's documentation, but the short version is that you may mix C++ and Objective-C in files with the extension ".mm". It's not magic (C++ classes and Objective-C classes are still separate things), but you can now use them in the same code.

andyvn22