I'm new to Arduino, and one thing I came across is this cool tool called Embedxcode, which basically allows you to compile and run sketches on the Arduino from Xcode instead of from the normal Arduino compiler.
The reason I'm using this is because I want the user to be able to do something on the Arduino (i.e. push a button) and the computer responds (i.e. call some function in Objective-C). Since as far as I know you can't do that from the Arduino compiler, I've decided to use Xcode because it can compile Objective-C and use the OSX SDK.
I got Embedxcode to work (the Arduino code compiles and uploads to the board fine), but I can't get Objective-C working. As in, I cannot create a new Objective-C class to pass data to without Xcode giving me errors (and no, renaming the C++ files to .mm did not work).
Does anybody know how to solve this? Or is there a better way to get Arduino to directly interact with OSX events?