Re: Cancel NSThread - cocoa/mysql database search...

2009-05-08 Thread spartan g
Thanks... I tried both the ways as Bill and Mike suggested. I could manage to cancel the thread by checking the bool flag for cancellation. It works fine. But the problem I am facing now is, once i sent the query to MySQL through SMySQL framework, I am unable to cancel it. This query takes so

Re: Cancel NSThread - cocoa/mysql database search...

2009-05-08 Thread Andrew Farmer
On 08 May 09, at 07:08, spartan g wrote: But the problem I am facing now is, once i sent the query to MySQL through SMySQL framework, I am unable to cancel it. This query takes so much time to return the results and cannot be canceled as far as I understand. Is there any way to cancel this

Cancel NSThread - cocoa/mysql database search...

2009-05-06 Thread Sparta
Hi Friends, I am working on cocoa ­ MySQL application that connects to the MySQL database and retrieves the records. I run the search in a NSThread. I wish to cancel the search if needed, as the searching of the desired data takes 15-20 minutes due to the bigger size of database. Please suggest

Re: Cancel NSThread - cocoa/mysql database search...

2009-05-06 Thread Michael Ash
On Wed, May 6, 2009 at 11:22 AM, Sparta theultimatespar...@gmail.com wrote: Hi Friends, I am working on cocoa ­ MySQL application that connects to the MySQL database and retrieves the records. I run the search in a NSThread. I wish to cancel the search if needed, as the searching of the