Windows / Console Apps on Mac OS X

Hello !

I want to use SDL on Mac OSX the UNIX Way.
Is there a way to not open a Console Window on
the programm start. Something like -mwindows on MinGW ?

Thanks.

Hello !

I want to use SDL on Mac OSX the UNIX Way.
Is there a way to not open a Console Window on
the programm start. Something like -mwindows on MinGW ?

No there is no such way; the “console” is just another program like any
other. But if you just want to be able to see debug output, there are
two simple ways:

  1. Use Console.app
  2. Simply start Terminal.app (or any other terminal application of your
    choice), and manually start your application from there; then you’ll be
    able to see the output. E.g. if I want to run ScummVM.app, I can do
    this:
    cd /path/to/ScummVM.app/Contents/MacOS/
    ./scummvm

Cheers,

MaxAm 10.07.2004 um 21:33 schrieb Torsten Giebl:

So basically want you want to be able to do is click
an icon, and have the graphical portion of the
application show without the stdio?

You may want to learn more about the .app structure of
typical OS X applications. I don’t know much about
them, only what I’ve seen from browsing their
contents. But I just tried this in an attempt to give
you a simple answer, and it works fine for my
application:

$ mkdir some-app.app
$ mkdir some-app.app/Contents
$ mkdir some-app.app/Contents/MacOS
$ cp some-app some-app.app/Contents/MacOS/some-app

Then just double click the icon that shows up in the
finder. Some quirks about doing this:

  • You cannot drag the application icon to your dock.
    Instead, run it, get into windowed mode if it starts
    in full screen, then right click its icon on the dock
    and select “Keep in Dock”

  • The default Project Builder icon is used until you
    add an icon. I don’t know how to do this, if you find
    out how, or see a good page about the .app structure,
    please let me know at smirk at thebuicksix.com.

Please let me know how this works for you! (Btw I’m
running Panther, in case that becomes an issue.)

— Torsten Giebl wrote:> Hello !

I want to use SDL on Mac OSX the UNIX Way.
Is there a way to not open a Console Window on
the programm start. Something like -mwindows on
MinGW ?

Thanks.


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail