src/video/cocoa/SDL_cocoawindow.m
changeset 6108 f3c34d321289
parent 6044 35448a5ea044
child 6138 4c64952a58fb
equal deleted inserted replaced
6107:07fb0ac6886a 6108:f3c34d321289
    67 
    67 
    68     [window setNextResponder:self];
    68     [window setNextResponder:self];
    69     [window setAcceptsMouseMovedEvents:YES];
    69     [window setAcceptsMouseMovedEvents:YES];
    70 
    70 
    71     [view setNextResponder:self];
    71     [view setNextResponder:self];
       
    72 
    72 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
    73 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
    73     [view setAcceptsTouchEvents:YES];
    74     if ([view respondsToSelector:@selector(setAcceptsTouchEvents:)]) {
       
    75         [view setAcceptsTouchEvents:YES];
       
    76     }
    74 #endif
    77 #endif
    75 }
    78 }
    76 
    79 
    77 - (void)close
    80 - (void)close
    78 {
    81 {