Xcode and C++
Posted on 2012-03-23
I have experience with programming Mac when ThinkC was the only option for C++. Recently I have been asked to convert a Windows C++ program to later Macs running OS X. I know that Xcode will compile C++ code, but I wonder how easy and effective that will be.
If I am using Xcode with C++, will I have the advantage of Cocoa and its developer GUI? Or will I be unable to take advantage of the new tools that come with Xcode for programming since Cocoa is written in Object-C? Will I have to develop the user GUI in Object-C which will then (somehow?) call up C++ function code for execution?
In sum, will I be able to integrate C++ code with the Xcode user GUI objects (windows, menus, dialogs, etc.) without having to jump through hoops. And, last but not least, will I have the advantage of using the developer's GUI if I'm programming in C++ with Xcode?
By the way, the Windows code is written in Visual C++ MFC with a lot of old code that's not object oriented. I'm aware that I will need to strip out all of the MFC and Windows API code and port over just the code governing the underlying functions.
Last, but not least, is software developed for the Mac still tied to the event loop for its overall operation.