[nfde] Update deprecated function and make library an object library

This commit is contained in:
Gary Talent 2022-05-25 20:39:10 -05:00
parent f62d29a273
commit 246db22162
2 changed files with 2 additions and 2 deletions

View File

@ -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/

View File

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