ソースを参照

macOS: Fixed open dialog crash.

Бранимир Караџић 4 ヶ月 前
コミット
23baae9e00
1 ファイル変更1 行追加1 行削除
  1. 1 1
      examples/common/entry/dialog_darwin.mm

+ 1 - 1
examples/common/entry/dialog_darwin.mm

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