• 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: runtime execution path for NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: runtime execution path for NSTask


  • Subject: Re: runtime execution path for NSTask
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 13 Jul 2007 13:22:49 -0600


On Jul 13, 2007, at 1:04 PM, Chris Heimark wrote:

If a command line program and Cocoa app are in same directory, how do I tell NSTask that executable is in same path (not relative) as the launching Cocoa app?

Use NSBundle to get the path of the executable. Don't ever rely on the state of the PWD.


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

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: runtime execution path for NSTask
      • From: John Stiles <email@hidden>
References: 
 >Re: reason for getting NSFileHandle:writeData exception (From: Kevin Kuehl <email@hidden>)
 >runtime execution path for NSTask (From: Chris Heimark <email@hidden>)

  • Prev by Date: Re: Objective-C/Cocoa connectivity to Relational Databases
  • Next by Date: Re: Wheel Start and End
  • Previous by thread: Re: runtime execution path for NSTask
  • Next by thread: Re: runtime execution path for NSTask
  • Index(es):
    • Date
    • Thread