• 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: What are argc and argv from Finder (was "Voodoo...")
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What are argc and argv from Finder (was "Voodoo...")


  • Subject: Re: What are argc and argv from Finder (was "Voodoo...")
  • From: Bjoern Kriews <email@hidden>
  • Date: Sun, 29 Feb 2004 21:56:50 +0100

On 29.02.2004, at 21:20, Jerry Krinock wrote:
So, I'd like to know: What values of argc and argv does the Finder pass to
applications on the command line?

(Also, does anyone know a trick for writing things to console.app when an
application is launched from the Finder? You know, NSLog() to the
terminal.app won't work if I don't launch the app from terminal.app. If I
could write out argc and argv, I could quickly answer the question myself!)

NSLog(); from main() writes to /var/log/system.log
(which is read by Console.app) for a noprmal application start.

The Finder passes something like -psn_0_28835841 (Process Serial Number).

btw:

running "ps xaw" from the terminal also gives you that information.
_______________________________________________
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: What are argc and argv from Finder (was "Voodoo...")
      • From: Jerry Krinock <email@hidden>
References: 
 >What are argc and argv from Finder (was "Voodoo...") (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Help - Outline view woes
  • Next by Date: Re: Databasing and Cocoa
  • Previous by thread: What are argc and argv from Finder (was "Voodoo...")
  • Next by thread: Re: What are argc and argv from Finder (was "Voodoo...")
  • Index(es):
    • Date
    • Thread