• 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
Pass command line arguments to the app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pass command line arguments to the app?


  • Subject: Pass command line arguments to the app?
  • From: Chad Armstrong <email@hidden>
  • Date: Thu, 17 Jul 2003 14:26:32 -0500

How is it possible to pass command line parameters from a Cocoa application to the rest of the app? The main() function has the argc and argv and passes those to NSApplication. How might my other classes be able to access those arguments?

Chad Armstrong
email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: Pass command line arguments to the app?
      • From: Fritz Anderson <email@hidden>
    • Re: Pass command line arguments to the app?
      • From: Thomas Deniau <email@hidden>
    • Re: Pass command line arguments to the app?
      • From: Chris Parker <email@hidden>
  • Prev by Date: Re: cocoa/Obj-C API for iCal
  • Next by Date: Stripy Tables
  • Previous by thread: Re: Editing NSTableViews
  • Next by thread: Re: Pass command line arguments to the app?
  • Index(es):
    • Date
    • Thread