Re: How to get at argc/argv?
Re: How to get at argc/argv?
- Subject: Re: How to get at argc/argv?
- From: Sherm Pendley <email@hidden>
- Date: Wed, 10 Mar 2004 20:44:51 -0500
On Mar 10, 2004, at 8:31 PM, Simon Fraser wrote:
In a Cocoa app, how (other than changing the default main())
do you get at the argc/argv that were used to launch the app?
It's in NSProcessInfo - presumably so that command-line tools that use
only Foundation can use it.
NSArray *args = [[NSProcessInfo processInfo] arguments];
sherm--
_______________________________________________
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.