• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSavePanel problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSavePanel problem


  • Subject: Re: NSSavePanel problem
  • From: Peter Hudson <email@hidden>
  • Date: Sun, 24 Feb 2013 14:04:43 +0000

I'll see if I can reproduce this problem in a small app.

Many thanks to everyone.

Peter



On 24 Feb 2013, at 13:35, Andy Lee <email@hidden> wrote:

> Okay, you're calling plain old runModal, so that rules out a contextInfo memory management bug. And you don't set a delegate, so that rules out another place to look for bugs.
>
> I'm stumped. I'd repeat Eric's suggestion to reduce this to the simplest possible app that reproduces the problem. Also try the things Quincey mentioned to see if you can make the bug go away as mysteriously as it arose.
>
> --Andy
>
> On Feb 24, 2013, at 4:26 AM, Peter Hudson <email@hidden> 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 (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


References: 
 >Re: NSSavePanel problem (From: Peter Hudson <email@hidden>)
 >Re: NSSavePanel problem (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: NSSavePanel problem
  • Next by Date: Re: Problem with NSDatePicker in popover (workaround)
  • Previous by thread: Re: NSSavePanel problem
  • Next by thread: Re: NSSavePanel problem
  • Index(es):
    • Date
    • Thread