Process.launch() in Swift
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