• 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: Calling cocoa app from command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling cocoa app from command line


  • Subject: Re: Calling cocoa app from command line
  • From: Mark Ritchie <email@hidden>
  • Date: Thu, 15 Mar 2007 22:46:02 -0400

On 15-Mar-07, at 5:52 PM, Clark Cox wrote:
Running it directly from the command-line (i.e. the second suggestion
above) will run it as a subprocess of your shell. This means that it
will inherit your shell's environment, and will have its stdin/out
attached to the same files as the shell itself, etc. *and* it will not
reactivate an already running instance of your app.

Yes, for sure this will act quite differently then an application launched from the Finder. IMHO, having the stdin, stdout and std error all attached to the terminal are extremely useful while development. And the ability to set environment variables and have them passed to the application is quite useful, especially if you're having loader troubles (man dyld) and need to see what's going on.


Thanks for the clarification!
Mark
__
Mark Ritchie
Cocoa and WebObjects Developer
Diamond Lake Consulting Inc.
Toronto, Ontario, Canada



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Calling cocoa app from command line (From: dew drops <email@hidden>)
 >Re: Calling cocoa app from command line (From: Daryl Thachuk <email@hidden>)
 >Re: Calling cocoa app from command line (From: Mark Ritchie <email@hidden>)
 >Re: Calling cocoa app from command line (From: "Clark Cox" <email@hidden>)

  • Prev by Date: NSTokenField binding its way to a bunch o' NSManagedObjects ... ??
  • Next by Date: True object size
  • Previous by thread: Re: Calling cocoa app from command line
  • Next by thread: Dynamic Spotlight importer
  • Index(es):
    • Date
    • Thread