How to ALWAYS Display Terminal for an Application?

Discussion in 'Mac Programming' started by ideal phi, Sep 25, 2010.

  1. macrumors newbie

    Joined:
    Sep 25, 2010
    #1
    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.
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    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).
     
  3. thread starter macrumors newbie

    Joined:
    Sep 25, 2010
    #3
    Thanks. It's exactly what I wanted.
     

Share This Page