Re: Cocoa GUI app invocation from CLI with arguments
Re: Cocoa GUI app invocation from CLI with arguments
- Subject: Re: Cocoa GUI app invocation from CLI with arguments
- From: "Mac QA" <email@hidden>
- Date: Mon, 31 Mar 2008 18:40:09 -0400
On 3/31/08, Jean-Daniel Dupas <email@hidden> wrote:
>
> You can get cli arguments at anytime using NSProcessInfo.
>
> - [[NSProcessInfo processInfo] arguments];
Awesome! This looks to be a much better method than parsing argv
inside main before calling NSApplicationMain, which is what I've
always done. Thanks!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden