My apologies if this has been covered already... forum searching doesn't seem to be working right now.
Can I include any C++ code at all in a Cocoa project? Or do I have to use Objective-C for everything? I'm trying to port an OpenGL project of mine to a screensaver in OS X. I have it running well under GLUT in Carbon, but it looks like I have to go with Cocoa to write a screen saver plug-in. All the samples I could find use only plain C, no C++. My project uses C++ heavily for class structures. I plan to learn Objective-C eventually, so rewriting the code in Obj-C is a possibility, but one of my goals for the project was to make the code extremely portable (since it is 99% platform independent OpenGL code) and compile with little modification in Mac, Windows, Linux, whatever.
Any ideas? Thanks in advance,
- Ross