• 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
Killing a thread by force
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Killing a thread by force


  • Subject: Killing a thread by force
  • From: "Raja Mallick" <email@hidden>
  • Date: Tue, 20 May 2003 11:12:43 +0530

Hi,

In my Cocoa/Objective-C application, I'm using the ThreadWorker class to start
another thread from my application and from my own class, I'm calling
ThreadWorker in the following way:
[ThreadWorker workOn:self
withSelector:@selector(longTask:)
withObject:userInfo
didEndSelector:@selector(longTaskFinished:)];

The thread is working fine. But my requirement is when a button, say cancel is
clicked, the longTask method will quit and the thread will be killed. Can
anybody give me some idea, how can I stop the method longTask and kill the
thread for a button click?

TIA,

Raja
_______________________________________________
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: Killing a thread by force
      • From: Dan Sugalski <email@hidden>
    • Re: Killing a thread by force
      • From: Joshua Orr <email@hidden>
  • Prev by Date: How to get Input Menu setting + key characters?
  • Next by Date: Re: How to stop Classic launching iTunes? (Cocoa & Applescript)
  • Previous by thread: How to get Input Menu setting + key characters?
  • Next by thread: Re: Killing a thread by force
  • Index(es):
    • Date
    • Thread