• 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
Termination of threads.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Termination of threads.


  • Subject: Termination of threads.
  • From: email@hidden
  • Date: Fri, 8 Feb 2002 16:08:03 -0500

Hello, everybody.

I want to be able to terminate Threads within my application. Cocoa seems to define only one function that will be able to do what I want, namely the [NSThread exit]. However, while looking at the docs I saw the plus. Ooops. Things seem more complicated than that...

As far as I get it, I need to set up a proxy object from the callee thread (my UI interface) to the thread that has to be terminated. Then, I invoke a function through the proxy and the thread receives the message and terminates itself.

Question 1: Will this work?
Question 2: Is there a better/quicker/more elegant way of doing this? I hate Cocoa's complicated inter-thread communication system.

Thank you very much for any input.

Nick
_______________________________________________
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.

  • Follow-Ups:
    • Re: Termination of threads.
      • From: Mike Shields <email@hidden>
  • Prev by Date: Re: Multiple nibs
  • Next by Date: Multiple instances of a window
  • Previous by thread: Getting notifications while window is moving?
  • Next by thread: Re: Termination of threads.
  • Index(es):
    • Date
    • Thread