Disappearing accessory view
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. |
_______________________________________________
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