macOS: Fixed deprecated warning. (#3672)

This commit is contained in:
Branimir Karadžić
2026-04-18 18:36:19 -07:00
committed by GitHub
parent 234281e4ec
commit 6c820091e4
2 changed files with 7 additions and 0 deletions

View File

@@ -104,7 +104,11 @@ bool openFileSelectionDialog(
panel.message = [[NSString alloc] initWithBytes:_title.getPtr() length:_title.getLength() encoding:NSASCIIStringEncoding];
panel.directoryURL = [NSURL URLWithString:@(_inOutFilePath.getCPtr())];
BX_PRAGMA_DIAGNOSTIC_PUSH();
BX_PRAGMA_DIAGNOSTIC_IGNORED_CLANG_GCC("-Wdeprecated-declarations");
panel.allowedFileTypes = fileTypes;
BX_PRAGMA_DIAGNOSTIC_POP();
if ([panel runModal] == NSModalResponseOK)
{