NSRunLoop and port
NSRunLoop and port
- Subject: NSRunLoop and port
- From: Olivier Destrebecq <email@hidden>
- Date: Wed, 7 Aug 2002 12:25:41 -0500
I use ThreadWorker to put a lengthy process in a separate thread so that
the UI does not freeze on the user. From what i understand from the
code, it create a runloop within a thread. My problem is that in that
thread i send appleevents, which apparently create ports in the runloop .
Then the runloop does not exit as supposed to as the port are not closed
(at least it is my understanding of the situation). So my question is
how can i close those port so that the runloop exit and my completion
routine is called.
(somebody told me to call [NSThread exit], but that would not work as it
kills the thread right away without calling the completion routine)
Olivier
_______________________________________________
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.