[Mono-osx] Passing command line paramenters to a MonoMac app
Maxi Combina
maxi.combina at passwordbank.com
Mon May 16 08:54:34 EDT 2011
Hello,
is it possible to pass command line paramenters to a MonoMac app?
In Main(string [] args) method I only get 1 paramenter: the executable name.
I was poking with the generated scripts and they do some trickery with
MONO_ENV_OPTIONS to launch the app... and no parameter is added to this
var.
I even hardcoded some stuff (to check) and got the params in Main()... but
in my overriden version of AppDelegate.FinishedLoading() I have no
parameters in NSProcessInfo.ProcessInfo.Arguments.
What am I doing wrong? Which is the correct way to provide command line
arguments to a MonoMac app?
thanks
--
*Maxi Combina*
Cell:+1 408 300 3614
Tel: +1 408 524 1579
440 N. Wolfe Road. Sunnyvale. CA. 94085. USA
<http://www.passwordbank.com/>www.PasswordBank.com<http://www.passwordbank.com/>
This message and its attachments are sent from PasswordBank, Inc. and may
contain information that is
confidential. If you are not the intended recipient, you are prohibited from
printing, copying, forwarding or
saving them. Please delete the message and attachments without printing,
copying, forwarding or saving
them, and notify the sender immediately. Message transmission is not
guaranteed to be secure.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110516/842ec1dd/attachment-0001.html
More information about the Mono-osx
mailing list