Re: problems in runModal in NSOpenPanel used with defaults

2008-09-30 Thread spartan g
Oh Yes... Thanks Mike. I got your point corbin. I was thinking that I am messing somewhere in using the panel properties!!! In fact that behavior, now, seems very helpful to get the last opened directory.. Very much Helpful... Once again Thanks Mike, Thanks Corbin Best Regards, Spartan...

Re: problems in runModal in NSOpenPanel used with defaults

2008-09-30 Thread Corbin Dunn
On Sep 29, 2008, at 11:20 PM, spartan g wrote: Oh Yes... Thanks Mike. I got your point corbin. I was thinking that I am messing somewhere in using the panel properties!!! In fact that behavior, now, seems very helpful to get the last opened directory.. I should also mention that you

Re: problems in runModal in NSOpenPanel used with defaults

2008-09-29 Thread Corbin Dunn
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 file timely whenever it is changed, so I am using synchronization of defaults. I checked and found that

Re: problems in runModal in NSOpenPanel used with defaults

2008-09-27 Thread Michael Ash
On Sat, Sep 27, 2008 at 1:34 AM, spartan g [EMAIL PROTECTED] 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 file timely whenever it is changed, so I am using synchronization of defaults. I checked

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

Re: problems in runModal in NSOpenPanel used with defaults

2008-09-26 Thread Corbin Dunn
Howdy spartan, Oh! A few little tips: 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 = [NSOpenPanel openPanel]; if ([panel runModal]) {

Re: problems in runModal in NSOpenPanel used with defaults

2008-09-26 Thread spartan g
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 file timely whenever it is changed, so I am using synchronization of defaults. I checked and found that there is no resetStandardUserDefaults used anywhere in the