From 9838c1c014a2a87ed6b9102b679fe867f30ca63d Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Sun, 5 Apr 2026 19:06:55 +0300 Subject: [PATCH] Fix deprecation warnings --- Source/Engine/Platform/SDL/SDLWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Engine/Platform/SDL/SDLWindow.cpp b/Source/Engine/Platform/SDL/SDLWindow.cpp index dafebc784..f284ed5bb 100644 --- a/Source/Engine/Platform/SDL/SDLWindow.cpp +++ b/Source/Engine/Platform/SDL/SDLWindow.cpp @@ -38,6 +38,7 @@ #include "Engine/Platform/Linux/IncludeX11.h" #elif PLATFORM_MAC #include +#include #elif PLATFORM_WEB #else static_assert(false, "Unsupported Platform"); @@ -226,7 +227,7 @@ SDLWindow::SDLWindow(const CreateWindowSettings& settings) NSWindow* win = ((NSWindow*)_handle); NSView* view = win.contentView; [win unregisterDraggedTypes]; - [win registerForDraggedTypes:@[NSPasteboardTypeFileURL, NSPasteboardTypeString, (NSString*)kUTTypeFileURL, (NSString*)kUTTypeUTF8PlainText]]; + [win registerForDraggedTypes:@[NSPasteboardTypeFileURL, NSPasteboardTypeString, UTTypeFileURL.identifier, UTTypeUTF8PlainText.identifier]]; #endif } #endif