From 79fba9dd9a5800d723ab669cf7cf47258ce5d1ad Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 9 Sep 2022 15:39:00 +0530 Subject: [PATCH] Use the dynamic property instead of testing identifier serialization --- glfw/cocoa_window.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index bec4d93e4..2ebc7f044 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -2517,7 +2517,7 @@ mime_to_uti(const char *mime) { if (strcmp(mime, "text/plain") == 0) return NSPasteboardTypeString; if (@available(macOS 11.0, *)) { UTType *t = [UTType typeWithMIMEType:@(mime)]; // auto-released - if (t != nil && ![t.identifier hasPrefix:@"dyn."]) return t.identifier; + if (t != nil && !t.dynamic) return t.identifier; } return [NSString stringWithFormat:@"%@%s", UTI_ROUNDTRIP_PREFIX, mime]; // auto-released }