[Mono-osx] macpack and args[]

jeff_grimshaw@comcast.net jeff_grimshaw@comcast.net
Fri, 08 Apr 2005 19:41:56 +0000


It looks to me like the native executable created by macpack does not pass command line arguments.  The executable that mcs creates is fine.  That is, execute

>mono ~/MyProgram/myprogram.exe FirstArgument

and args[0] will be "FirstArgument".  But if you instead execute

>~/MyProgram/MyProgam.app/Contents/MacOS/myprogram FirstArgument

then args.Length is 0 (zero).  I suppose this makes sense if the native OSX executable is a wrapper that loads the mono app.  The wrapper just isn't passing the args (yet).

Has anyone else seen this behavior?

--Jeff