NSTask - Notification and Threads
NSTask - Notification and Threads
- Subject: NSTask - Notification and Threads
- From: Seth Willits <email@hidden>
- Date: Thu, 5 Mar 2009 14:22:12 -0800
It seems to me that the thread a task was launched on must continue to
exist until the thread is terminated, in order for the task to send
NSTaskDidTerminateNotification. I can either make my thread continue
to exist (I'd prefer not) or I can make the launch happen on the main
thread and use a condition to know when it's actually happened. The
latter seems pretty reasonable. Anything else? Anyone have solid
experience with this situation?
I find it odd the docs don't mention this, but maybe it's one of those
things I'm "just supposed to know."
--
Seth Willits
_______________________________________________
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