I made a project in C that was a "command line tool" in XCode. It uses GLUT/OpenGL, so it does have a user interface. It works fine, and I can run it from Terminal, but I was wondering if there was any way to allow it to run from Finder.
I did create a new target (a Cocoa application), and I included the linked frameworks and removed the prefix header and it compiles and runs. However, it won't work from Finder. I think that the problem is that my program relies on a file named "Input" that it assumes is in its directory. I tried using
instead of
but that didn't work. (I also tried more levels of up and down, that doesn't seem to work either.)
I hope that that ramble was half-intelligible!
Thanks in advance for any help.
I did create a new target (a Cocoa application), and I included the linked frameworks and removed the prefix header and it compiles and runs. However, it won't work from Finder. I think that the problem is that my program relies on a file named "Input" that it assumes is in its directory. I tried using
Code:
FILE* data = fopen("../../Input", "r");
Code:
FILE* data = fopen("Input", "r");
I hope that that ramble was half-intelligible!
Thanks in advance for any help.