• 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
Calling a CLI command withing the app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calling a CLI command withing the app


  • Subject: Calling a CLI command withing the app
  • From: Jesper Nilsson <email@hidden>
  • Date: Sat, 27 Oct 2001 12:52:28 +0200

Hi guys!

I have done some CLI apps in C for BSD before. They work great in osX. But now i want to do a gui wrapper in Cocoa using NSTask. It works if I use the true path to the CLI app in setLaunchPath. But I want to include the CLI commands in the app.

How do I call them within the app from objC?
I tried lame things like this:

BitrateCalc = [[NSTask alloc] init];
[avi2mov setLaunchPath:@"myApp.app/resources/BitrateCalculator"];

But it doesn't like the LaunchPath.

/jesper nilsson


  • Follow-Ups:
    • Re: Calling a CLI command withing the app
      • From: Douglas Davidson <email@hidden>
    • Re: Calling a CLI command withing the app
      • From: Ondra Cada <email@hidden>
  • Prev by Date: I think I am leaking! :)
  • Next by Date: Re: Calling a CLI command withing the app
  • Previous by thread: Re: I think I am leaking! :)
  • Next by thread: Re: Calling a CLI command withing the app
  • Index(es):
    • Date
    • Thread