If you attempt to develop a sample application which reproduces the problem, 
can you do so? If so, making the sample application available might be quite 
useful in tracking down the problem.


On Feb 24, 2013, at 4:26 AM, Peter Hudson <peter.hud...@me.com> wrote:

> Here is the code for running the NSSavePanel.
> I run the panel using runModal.
> I simply never return from the  runModal if I click the directory popup.
> 
> Peter
> 
> 
> 
> -(IBAction)exportDayOutOfDaysReportToHTML:(id)sender
> {
> 
> 
>     NSSavePanel *sp = [NSSavePanel  savePanel];
>     [sp  setTitle:@"Save as HTML"];
>     [sp  setRequiredFileType:@"html"];
> 
> 
> 
>     SSScriptModel * model = [scriptDoc scriptModel];  
>     NSString *activeStripstore = [[model  stripstoreManager] 
> currentStripstoreName];
> 
>    // Go to the stripstore manager and get the list of stripstore name 
> suffixes...
>    // Only the user supplied short name ( from the stripstore name sheet ), 
> not the complete suffix with separator...  e.g.  "(L)" 
>     NSString *stripstoreNameSuffix = @"";
> 
>       NSArray * a =  [[model  stripstoreManager] stripstoreNameSuffixes];  
>        NSEnumerator *e = [a  objectEnumerator];
>        NSString *s;
>        while( s = [e  nextObject] )
>        {
>            if( [activeStripstore  hasSuffix:s] )
>            {
>                stripstoreNameSuffix = [NSString  stringWithString:s];   // 
> e.g.  "(L)" 
>                break;
>            }
>        }
> 
> 
>     NSString *suffixCoreString = 
> NSLocalizedString(@"SSStripstoreNameSuffixSeparator", nil );   // " #" at the 
> moment
>     NSString *saveFileName = [NSString  stringWithFormat:@"%@ - %@%@", 
>                                     [reportSelectorPopup  
> titleOfSelectedItem], suffixCoreString,stripstoreNameSuffix];
> 
> 
>     [sp  setNameFieldStringValue:saveFileName];
> 
> 
>     int retval = [sp  runModal];      //  I get hosed in here if I click on 
> the directory popup …..
> 
> 
> 
>     /// …..…..  save names etc ...
> 
> 
> 
> 
> }
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/mailist%40ericgorr.net
> 
> This email sent to mail...@ericgorr.net


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to