Terminating from Separate Thread
Terminating from Separate Thread
- Subject: Terminating from Separate Thread
- From: Eric Blanpied <email@hidden>
- Date: Tue, 11 Jul 2006 16:49:19 -0700
My app has a child object that handles a periodic process on a
separate thread. From time to time that process encounters an error
which requires notifying the user and quitting the app. So far I've
done this with an NSAlert from that thread, and then [NSApp
terminate: self], which seems effective.
The trouble is that there are some things that would be good to tidy
up in the main thread before even showing that alert. How can I have
this child object, on a separate thread, tell the main app to do some
stuff, show the dialog (with error data from the child object), & quit?
Thanks,
-e
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden