1

I'm currently trying to start NSTask on button click and stop it on another button click (two buttons). Can anybody tell my how to do that?

Thanks, Greets Julian

Martijn
  • 1,620
  • 9
  • 18
Julian F. Weinert
  • 7,474
  • 7
  • 59
  • 107

1 Answers1

3

Send it a -launch message when you want it to start, and send it a -terminate message when you want it to stop.

Is there something you're not understanding in the documentation?

NSResponder
  • 16,861
  • 7
  • 32
  • 46