I am trying to use NSTask on to run an ASR Multicast Stream, a Ruby Server Script, etc. Basically, I’m trying to run tasks with NSTask that do not finish running until interrupted, but the problem is that I can’t get the NSTask to run in the background. So it ends up just running and holding up the rest of my program. Any help?
Thanks!
NSTaskshouldn’t block your program unless you call thewaitUntilExitmethod. If you have to do that, you could make a new thread and start/wait for yourNSTaskfrom inside it. As an alternative to blocking, you could look intoNSTaskDidTerminateNotification. TheNSTaskdocumentation covers all of these options.