On 8/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I have a program that uses wxLua by running the executable of
> wxLuaFreeze with a script as a parameter, like so:
>
> wxLuaFreeze.app/Contents/MacOS/wxluafreeze JOF.lua &> /dev/null &
>
> JOF.lua is, of course, the name of my script. In version 2.8.0.0 this
> worked fine, but in version 2.8.4.1 the application shows its main
> window, but it is not selectable (it wont get focus by cliking on it),
> and no icon is shown in the dock. If I run the wxLuaFreeze app by
> launching the bundle directly the icon of the app flashes in the dock
> before the app closes (almost immediately). But if I pass arguments to
> the program no icon is shown in the dock.
>
> Is there a problem with the new wxLuaFreeze or am I missing something?
> Also, is there a better way to pass args to wxLuaFreeze in OSX, than
> opening up the bundle and passing the args directly to the executable?

The problem with the program not accepting any input is a
"bug/feature" of OSX. This happens when you try to directly run an
executable. You need to run a program as a "bundle" with a specific
directory structure and a few extra files to help the OS do the right
thing.

Apparently there is some code you can stick into a programs
initialization to get around the need for the directory structure of
the bundle. I will look into that.

I can't test now, but on the command line I believe that you can run a
bundle (actually a directory) using the "open" command. I wonder if
that allows for command line args?

Hopefully Anders can shed some light on this.

Regards,
    John Labenski

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to