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) {