problems in runModal in NSOpenPanel used with defaults

2008-09-26 Thread spartan g
Hi, I am writing an utility which needs to open a panel to browse files and select one. - (IBAction)browseClicked:(id)sender { NSOpenPanel *panel = [NSOpenPanel openPanel]; if ([panel runModal]) { NSArray *filenames = [panel filenames]; NSString *filename = [filenames object

Re: problems in runModal in NSOpenPanel used with defaults

2008-09-26 Thread spartan g
gt; > On Sep 26, 2008, at 3:11 AM, spartan g wrote: > > Hi, >> I am writing an utility which needs to open a panel to browse files and >> select one. >> >> >> - (IBAction)browseClicked:(id)sender >> >> { >> >> NSOpenPanel *panel = [N

Re: problems in runModal in NSOpenPanel used with defaults

2008-09-29 Thread spartan g
... On Mon, Sep 29, 2008 at 9:17 PM, Corbin Dunn <[EMAIL PROTECTED]> wrote: > > On Sep 26, 2008, at 10:34 PM, spartan g wrote: > > Thanks Corbin, > I have used your tips in the updated code. > Besides, my aim is to save the filename selected through the panel to a > pList

MySQL-Cocoa database access

2009-03-30 Thread spartan g
Hi Friends, I am communicating with the MySQL database through the SMySQL framework. I can open the database connection successfully. I can select the database too. When I send a query to read the max count in the primary key i get the value in return for the first time. Then I insert the new rec

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 muc