0

I have a few classes written in c++ which needs to be integrate with my iOS project written in Objective-C. I got a Mac (C++) project from my client to integrate with my project. I need to call the methods in .cpp class from Objective-C class with NSNotificationCenter or some other way which is better do it?

4
  • DLL. Filling this with characters so It fits the quota. Commented Aug 3, 2015 at 7:01
  • 2
    Rename .m into .mm and use c++ code. Commented Aug 3, 2015 at 7:02
  • I need to use the class not the code @Cy-4AH Commented Aug 3, 2015 at 7:02
  • 1
    Rename .m into .mm and use c++ classes. Commented Aug 3, 2015 at 8:54

1 Answer 1

1

If you make a file with extension .mm you can use both Objective-C and C++ inside that one. It can quickly get messy so i usually try to keep the C++ touchpoints contains in a few .mm files so the whole thing won't be a mix of Objective-C and C++ and c 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.