• 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
Process.launch() in Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Process.launch() in Swift


  • Subject: Process.launch() in Swift
  • From: David Catmull <email@hidden>
  • Date: Wed, 31 May 2017 09:01:16 -0600

The documentation for Process.launch() (the equivalent of -[NSTask launch])
says it "raises an NSInvalidArgumentException if the launch path has not
been set or is invalid or if it fails to create a process", and yet the
function is not marked as "throws". So what happens if I call it from Swift
and it encounters an error?

I'm thinking I should probably just call it from Objective-C to be safe.
_______________________________________________

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: Process.launch() in Swift
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: How To Install El Capitan From Sierra?
  • Next by Date: Re: Process.launch() in Swift
  • Previous by thread: Re: How To Install El Capitan From Sierra?
  • Next by thread: Re: Process.launch() in Swift
  • Index(es):
    • Date
    • Thread