• 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
Disappearing accessory view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disappearing accessory view


  • Subject: Disappearing accessory view
  • From: Michael McLaughlin <email@hidden>
  • Date: Sun, 14 May 2017 14:18:25 -0400

In Xcode 8.3.2, I  have the following in a subclass of NSDocument:

- (BOOL)prepareSavePanel:(NSSavePanel *)savePanel
{
   [savePanel setAccessoryView:_mSavePanelView];
   if (filename == nil)
      filename = [[self windowForSheet] title];
   NSString *fname = filename;

   

   thisSavePanel = savePanel;
   if (isPDF)
      fname = [fname stringByAppendingString:@".pdf"];
   else
      fname = [fname stringByAppendingString:@".png"];

   

   [savePanel setCanSelectHiddenExtension:YES];
   [savePanel setExtensionHidden:NO];
   [savePanel setNameFieldStringValue:fname];

   

   return YES;
}

with

@property (strong) IBOutlet NSView *mSavePanelView;

linked in via the .xib file for this document type.

This addition to the save panel works the first time Save or SaveAs is called.
However, if I repeat the call to Save or SaveAs, the auxiliary panel space appears but 
*without* its contents (pdf/png radio-button array) showing.

I tried defining IBOutlet mSavePanelView in other ways but it doesn’t help.

Any ideas appreaciated.

Thanks.

--
Michael McLaughlin
email@hidden





 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Disappearing accessory view
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Problem with Storyboard
  • Next by Date: Re: Disappearing accessory view
  • Previous by thread: Re: Problem with Storyboard
  • Next by thread: Re: Disappearing accessory view
  • Index(es):
    • Date
    • Thread