[nfde] Update deprecated function and make library an object library
This commit is contained in:
parent
f62d29a273
commit
246db22162
2
deps/nfde/src/CMakeLists.txt
vendored
2
deps/nfde/src/CMakeLists.txt
vendored
@ -31,7 +31,7 @@ if(nfd_PLATFORM STREQUAL PLATFORM_MACOS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Define the library
|
# Define the library
|
||||||
add_library(${TARGET_NAME} STATIC
|
add_library(${TARGET_NAME} OBJECT
|
||||||
${SOURCE_FILES})
|
${SOURCE_FILES})
|
||||||
|
|
||||||
# Allow includes from include/
|
# Allow includes from include/
|
||||||
|
2
deps/nfde/src/nfd_cocoa.m
vendored
2
deps/nfde/src/nfd_cocoa.m
vendored
@ -75,7 +75,7 @@ static void AddFilterListToDialog(NSSavePanel* dialog,
|
|||||||
NSArray* allowedFileTypes = BuildAllowedFileTypes(filterList, filterCount);
|
NSArray* allowedFileTypes = BuildAllowedFileTypes(filterList, filterCount);
|
||||||
|
|
||||||
// set it on the dialog
|
// set it on the dialog
|
||||||
[dialog setAllowedFileTypes:allowedFileTypes];
|
[dialog setAllowedContentTypes:allowedFileTypes];
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SetDefaultPath(NSSavePanel* dialog, const nfdnchar_t* defaultPath) {
|
static void SetDefaultPath(NSSavePanel* dialog, const nfdnchar_t* defaultPath) {
|
||||||
|
Loading…
Reference in New Issue
Block a user