Don't call -[NSView setAcceptsTouchEvents] if the OS doesn't provide it.
Thanks to Dimiter 'malkia' Stanev for the fix!
This commit is contained in:
parent
f1b292b5fd
commit
7023079a50
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue