Terminating a task
Terminating a task
- Subject: Terminating a task
- From: Chad Armstrong <email@hidden>
- Date: Tue, 21 Oct 2003 01:30:20 -0500
If I have some code which is using NSTask's waitUntilExit call to
determine when the task has been completed, is it possible to intervene
at all (such as a Stop/Cancel button being pressed) to call a terminate
method, or is waitUntilExit built so it can't be interrupted?
- (void) waitUntilExit
Suspends your program until the receiver is finished. This method first
checks to see if the receiver is still running using isRunning . Then
it polls the current run loop using NSDefaultRunLoopMode until the task
completes.
This was the text from Apple's reference page for NSTask, so it doesn't
seem overly possible. Any ideas?
Chad Armstrong
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.