iPhone GPS and mix of c++ and objective-c


I am thinking of a making an application that utilises the iPhone GPS to retrieve location data.

So I guess I must define a c++ class in a source file with file extension “.mm” and mix juce code and the Objective-C

I have tried to look at the code in an amalgamated files, but I have not fully understood the coding philosophy yet.

If anybody have done some work on iPhone location data, I would very much appreciate any tips on how to integrate JUCE and objective-c i this respect. Seems like the objective-c code can be mixed in the c++ class methods? And that objects derived from the NS classes can be used in c++ ?


Yes, it’s surprisingly easy to mix the languages - just stick it all in an .mm file and it’ll pretty much work as you’d expect.