macOS: remove deprecated touch event API call

Now that the minimum version is macOS 10.13, we can use the new API.

This reverts commit f97a64aa9b.
This commit is contained in:
Brecht Van Lommel
2020-11-04 14:19:37 +01:00
parent fd9124ed6b
commit cf9ea111bf

View File

@@ -404,7 +404,7 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(GHOST_SystemCocoa *systemCocoa,
[m_window setAcceptsMouseMovedEvents:YES];
NSView *contentview = [m_window contentView];
[contentview setAcceptsTouchEvents:YES];
[contentview setAllowedTouchTypes:(NSTouchTypeMaskDirect | NSTouchTypeMaskIndirect)];
[m_window registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType,
NSStringPboardType,