BMK - How do I get to it?

BlitzMax Forums/BlitzMax Beginners Area/BMK - How do I get to it?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

What xlsior described works, but it launches your app via the Terminal, which is probably not what you want. Whenever the BlitzMax IDE compiles an executable it places it inside a folder with a ".app" extension. This causes the Finder to treat it as a normal application, and it's how almost every Mac OS X application works. In the Terminal it appears as a folder, but when viewed in the Finder is appears to be a single file. To make it easy, here's the commands you would need to type to create an app wrapper in the Terminal:

$ cd /path/to/my/app
$ mkdir -p ./MyApp.app/Contents/MacOS
$ cp myapp MyApp.app/Contents/MacOS
You'll need to replace 'myapp' with the file name of your application. The '.app' extension will also be hidden when viewed in the Finder. Now, you should be able to double-click it's icon in the Finder to run your application.

Finally, you might want to change your app's icon from the default. I've written a little utility to handle this for you. It's called IconSwitcher (169 Kb). It includes the source code as well. You'll also need to use the 'Icon Composer' utility (/Developer/Applications/Utilities/) that comes with the developer tools to create an icon for your app.