Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ideal phi

macrumors newbie
Original poster
Sep 25, 2010
2
0
I'm trying to get the Terminal window to pop up when I run my compiled application which has an OpenGL window. I don't use the terminal for debugging and simply outputting data only, but I use it for inputting data as well. I know I can use "Run->Console" in Xcode, but I don't usually run the program through Xcode. Currently, the only way I can do this is by calling the application to run using a Terminal window which I had to open. I rather click the icon and have both windows, the OpenGL and the Terminal, display.
Essentially, the opposite of "-mwindows" does in windows.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
I don't think there is a way to do this, but could be wrong.

You could make a shortcut for launching from the Terminal by create a .command file (plain text), and putting the full path of the executable inside it. Then give it proper permissions (I think "chmod 755" will do). Now you have a double-clickable file that will open Terminal and execute the command within it (e.g. your app).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.