• 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: How to get at argc/argv?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >How to get at argc/argv? (From: email@hidden (Simon Fraser))

  • Prev by Date: How to get at argc/argv?
  • Next by Date: Cocoa Programming for Mac OS X book source code?
  • Previous by thread: How to get at argc/argv?
  • Next by thread: Re: How to get at argc/argv?
  • Index(es):
    • Date
    • Thread