• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSRunLoop and port
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Accessors
  • Next by Date: concatenating literal strings
  • Previous by thread: Re: Accessors
  • Next by thread: concatenating literal strings
  • Index(es):
    • Date
    • Thread