3

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

Thanks for your helps :)

2
  • For your possible next question: stackoverflow.com/questions/2262011/… Commented Feb 18, 2010 at 22:37
  • you answer before I ask ;) thanks for your help! Commented Feb 19, 2010 at 6:35

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.