1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-01 00:19:27 +02:00

Work around the other link problem, but I don't know what consequences...

... this will have at run-time for the file dialog.
This commit is contained in:
Paul Licameli 2018-11-15 14:46:43 -05:00
parent 7c78a91778
commit 296f846158

View File

@ -159,8 +159,8 @@ void FileDialog::Create(
{
FileDialogBase::Create(parent, message, defaultDir, defaultFileName, wildCard, style, pos, sz, name);
m_sheetDelegate = [[ModalDialogDelegate alloc] init];
[(ModalDialogDelegate*)m_sheetDelegate setImplementation: this];
// m_sheetDelegate = [[ModalDialogDelegate alloc] init];
// [(ModalDialogDelegate*)m_sheetDelegate setImplementation: this];
}
FileDialog::~FileDialog()
@ -316,7 +316,7 @@ void FileDialog::ShowWindowModal()
NSWindow* nativeParent = parentWindow->GetWXWindow();
[sPanel beginSheetForDirectory:dir.AsNSString() file:file.AsNSString()
modalForWindow: nativeParent modalDelegate: m_sheetDelegate
modalForWindow: nativeParent modalDelegate: nil // m_sheetDelegate
didEndSelector: @selector(sheetDidEnd:returnCode:contextInfo:)
contextInfo: nil];
}
@ -336,7 +336,7 @@ void FileDialog::ShowWindowModal()
NSWindow* nativeParent = parentWindow->GetWXWindow();
[oPanel beginSheetForDirectory:dir.AsNSString() file:file.AsNSString()
types: types modalForWindow: nativeParent
modalDelegate: m_sheetDelegate
modalDelegate: nil // m_sheetDelegate
didEndSelector: @selector(sheetDidEnd:returnCode:contextInfo:)
contextInfo: nil];
}