• 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: NSTask for external tool - keep active/prevent relaunch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask for external tool - keep active/prevent relaunch?


  • Subject: Re: NSTask for external tool - keep active/prevent relaunch?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 07 Mar 2014 22:15:49 -0800

On Mar 7, 2014, at 8:38 PM, Trygve Inda <email@hidden> wrote:

> I'd like it to work with md5, ffmpeg and others. These all work fine, but
> quit after returning their data.

There’s nothing you can do about that, unless those tools allow multiple input files to be passed on the command line. Check their man pages.

But running those from NSTask shouldn’t be any slower than doing it from something like a shellscript.

(BTW, MD5 digests are trivial to compute using the APIs in <CommonCrypto/CommonDigest.h>. There’s no need to launch a tool to do that. And to digress further, MD5 isn’t very secure; it’s better to use SHA-1 or SHA-256 unless you’re working with something that explicitly requires MD5.)

—Jens
_______________________________________________

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: NSTask for external tool - keep active/prevent relaunch?
      • From: Trygve Inda <email@hidden>
References: 
 >Re: NSTask for external tool - keep active/prevent relaunch? (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: Best way to composite/tile multiple CGImages to one image
  • Next by Date: Re: NSTask for external tool - keep active/prevent relaunch?
  • Previous by thread: Re: NSTask for external tool - keep active/prevent relaunch?
  • Next by thread: Re: NSTask for external tool - keep active/prevent relaunch?
  • Index(es):
    • Date
    • Thread