mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-06-08 11:23:52 +00:00
macOS: Fixed deprecated warning. (#3672)
This commit is contained in:
committed by
GitHub
parent
234281e4ec
commit
6c820091e4
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user