Re: cocoa and argv
Re: cocoa and argv
- Subject: Re: cocoa and argv
- From: Pierre-Olivier Latour <email@hidden>
- Date: Thu, 15 Aug 2002 12:13:22 +0200
>
I seem to have a slight problem, I need to open a
>
cocoa app from the command line, with an argument.
>
When the app is open by:
>
myapp.app/Contents/MacOS/myapp argument
>
>
I can access argv from the main.m main function.
>
The problem is how can I access argv from my
>
Controller class?
Quick & dirty solution ;)
Use a global variable where you copy the args (maybe keeping only the
pointer is OK, I don't know enough about Unix to answer this one).
_____________________________________________________________
Pierre-Olivier Latour email@hidden
Lausanne, Switzerland
http://www.pol-online.net
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.