To prevent errors on macOS, the save dialogue no longer displays a file type drop-down.

It will be displayed in the future when there are no more errors.
This commit is contained in:
Kirurobo
2024-05-07 13:34:59 +09:00
parent fb53afdbf8
commit 74a0de06ea
5 changed files with 11 additions and 10 deletions

View File

@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>0.9.3</string>
<string>0.9.4</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>

View File

@@ -118,10 +118,7 @@ struct ContentView: View {
structSize: Int32(MemoryLayout<LibUniWinC.PanelSettings>.size),
flags: 0,
titleText: titlePtr.baseAddress,
// M1 macOS 14.4.1 accessoryView 使
filterText: filterPtr.baseAddress,
filterText: filterPtr.baseAddress,
initialFile: nil,
initialDirectory: nil,
defaultExt: nil

View File

@@ -245,7 +245,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.kirurobo.DebugUniWinC;
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -275,7 +275,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.kirurobo.DebugUniWinC;
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -417,7 +417,7 @@
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2019-2023 kirurobo. All rights reserved.";
INFOPLIST_KEY_NSPrincipalClass = "";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
MARKETING_VERSION = 0.9.3;
MARKETING_VERSION = 0.9.4;
PRODUCT_BUNDLE_IDENTIFIER = com.kirurobo.LibUniWinC;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
@@ -442,7 +442,7 @@
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2019-2023 kirurobo. All rights reserved.";
INFOPLIST_KEY_NSPrincipalClass = "";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
MARKETING_VERSION = 0.9.3;
MARKETING_VERSION = 0.9.4;
PRODUCT_BUNDLE_IDENTIFIER = com.kirurobo.LibUniWinC;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;

View File

@@ -65,7 +65,11 @@ class CustomPanelHelper {
customAccessoryView.addSubview(label)
customAccessoryView.addSubview(popup)
panel.accessoryView = customAccessoryView
// 2024/05/05 NSSavePanel accessoryView
if (panel is NSOpenPanel) {
panel.accessoryView = customAccessoryView
}
hasSubView = true;
}