Hi there;
I've read that to use C++ in the same file as Objective C objects, you need to change the file extension to .mm instead of .m
I tried it and it worked... but while searching for info about this on the web, I found this post:
http://sseyod.blogspot.com/2009/02/objective-c.html
That basically says you don't have to rename your file, you can either on a file by file basis, or on an entire project basis, force your file to compile as if it were a .mm file by changing a build configuration option....
I tried it on the default cocos2d xcode project, and it failed with lots of errors... I don't see anyone mentioning any problems with .m vs .mm files... Should this work, and is it a good idea?