I have compiled a project using Eclipse with C/C++ plugin (using http://libcinder.org library, and it’s working pretty good.
Sort of…
It is a windowed application, and opengl is correctly redrawing the screen, mouse events are correct, etc. However, I can only run the application from the terminal, otherwise when i attempt to hit debug I can see my console statements but there’s no window to speak of.
When i output the CWD from the application, it appears to think it is running from my user directory.
How can I make this application seem more ‘mac like’, specifically when you rightclick a mac application you can view it’s contents, and be able to load files relative to the applications executable.
Also, any insight as to why it does not appear when launching via debugger in eclipse would be helpful too.
I have put this project together for anyone else who might find it useful here:
https://github.com/onedayitwillmake/EclipseLovesCinder
Hmmm. This is an architecture problem. I don’t know how resources are bundled by Eclipse normally, but they don’t use the application bundle architecture that OSX has built in.
Here’s the Apple developer docs on NSBundle. Start your reading here!