src/video/cocoa/SDL_cocoawindow.m
changeset 6108 f3c34d321289
parent 6044 35448a5ea044
child 6138 4c64952a58fb
--- a/src/video/cocoa/SDL_cocoawindow.m	Wed Dec 07 20:34:43 2011 -0500
+++ b/src/video/cocoa/SDL_cocoawindow.m	Fri Dec 09 02:32:21 2011 -0500
@@ -69,8 +69,11 @@
     [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
 }