• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa GUI app invocation from CLI with arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Cocoa GUI app invocation from CLI with arguments
      • From: Chris Suter <email@hidden>
References: 
 >Cocoa GUI app invocation from CLI with arguments (From: "Mac QA" <email@hidden>)
 >Re: Cocoa GUI app invocation from CLI with arguments (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Simple menu-action question
  • Next by Date: Re: libpq prepared statement
  • Previous by thread: Re: Cocoa GUI app invocation from CLI with arguments
  • Next by thread: Re: Cocoa GUI app invocation from CLI with arguments
  • Index(es):
    • Date
    • Thread