From 246db22162cf4d4f46b2761f67af2bfa701461e8 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 25 May 2022 20:39:10 -0500 Subject: [PATCH] [nfde] Update deprecated function and make library an object library --- deps/nfde/src/CMakeLists.txt | 2 +- deps/nfde/src/nfd_cocoa.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/nfde/src/CMakeLists.txt b/deps/nfde/src/CMakeLists.txt index 23db6c0b..af2e88d7 100644 --- a/deps/nfde/src/CMakeLists.txt +++ b/deps/nfde/src/CMakeLists.txt @@ -31,7 +31,7 @@ if(nfd_PLATFORM STREQUAL PLATFORM_MACOS) endif() # Define the library -add_library(${TARGET_NAME} STATIC +add_library(${TARGET_NAME} OBJECT ${SOURCE_FILES}) # Allow includes from include/ diff --git a/deps/nfde/src/nfd_cocoa.m b/deps/nfde/src/nfd_cocoa.m index 5d74b13d..c49851d5 100644 --- a/deps/nfde/src/nfd_cocoa.m +++ b/deps/nfde/src/nfd_cocoa.m @@ -75,7 +75,7 @@ static void AddFilterListToDialog(NSSavePanel* dialog, NSArray* allowedFileTypes = BuildAllowedFileTypes(filterList, filterCount); // set it on the dialog - [dialog setAllowedFileTypes:allowedFileTypes]; + [dialog setAllowedContentTypes:allowedFileTypes]; } static void SetDefaultPath(NSSavePanel* dialog, const nfdnchar_t* defaultPath) {