I have registered for a NSTaskDidTerminateNotification of a NSTask object. Everything works fine, but the task takes time to launch so i've moved the launching to background (with performSelectorInBackground).
- the registration with notification center and the creation of the task itself takes place on the main thread
- after a few seconds the task gets launched in background
- notifications no longer arrive :(
Is there a way i could somehow adjust the code for the notifications to work again?