Commit 7023079a authored by Ryan C. Gordon's avatar Ryan C. Gordon

Don't call -[NSView setAcceptsTouchEvents] if the OS doesn't provide it.

Thanks to Dimiter 'malkia' Stanev for the fix!
parent f1b292b5
......@@ -69,8 +69,11 @@ static __inline__ void ConvertNSRect(NSRect *r)
[window setAcceptsMouseMovedEvents:YES];
[view setNextResponder:self];
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
[view setAcceptsTouchEvents:YES];
if ([view respondsToSelector:@selector(setAcceptsTouchEvents:)]) {
[view setAcceptsTouchEvents:YES];
}
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment