Re: Killing a Thread
Re: Killing a Thread
- Subject: Re: Killing a Thread
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 24 Nov 2008 09:19:39 -0700
On Nov 24, 2008, at 2:02 AM, Mahaboob wrote:
So I used a thread to send the mail. I can send the mails. After
sending
mail to all email id’s I need to kill the thread. But I failed to do
that
and my application getting crashed after sending the mail. I think I
should
write the code for that in - (void) connectionTerminated: method.
But I
can’t able to Kill the thread. How can I do this ?
I think you're doing this wrong. Shouldn't you use NSOperationQueue
and an NSOperation subclass to do this? Operations can be cancelled
gracefully; you really shouldn't be killing threads.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden