src/video/cocoa/SDL_cocoawindow.m
changeset 7507 885b4aab4190
parent 7469 4310d5aee6fe
child 7534 f0f5143b27cf
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Tue Jul 23 12:59:29 2013 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Tue Jul 23 17:38:59 2013 -0700
     1.3 @@ -81,11 +81,9 @@
     1.4  
     1.5      [view setNextResponder:self];
     1.6  
     1.7 -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
     1.8      if ([view respondsToSelector:@selector(setAcceptsTouchEvents:)]) {
     1.9          [view setAcceptsTouchEvents:YES];
    1.10      }
    1.11 -#endif
    1.12  }
    1.13  
    1.14  - (void)observeValueForKeyPath:(NSString *)keyPath
    1.15 @@ -450,7 +448,6 @@
    1.16  
    1.17  - (void)handleTouches:(cocoaTouchType)type withEvent:(NSEvent *)event
    1.18  {
    1.19 -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
    1.20      NSSet *touches = 0;
    1.21      NSEnumerator *enumerator;
    1.22      NSTouch *touch;
    1.23 @@ -499,7 +496,6 @@
    1.24  
    1.25          touch = (NSTouch*)[enumerator nextObject];
    1.26      }
    1.27 -#endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= 1060 */
    1.28  }
    1.29  
    1.30  @end
    1.31 @@ -939,8 +935,6 @@
    1.32  void
    1.33  Cocoa_SetWindowBordered(_THIS, SDL_Window * window, SDL_bool bordered)
    1.34  {
    1.35 -    /* this message arrived in 10.6. You're out of luck on older OSes. */
    1.36 -#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1060
    1.37      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    1.38      NSWindow *nswindow = ((SDL_WindowData *) window->driverdata)->nswindow;
    1.39      if ([nswindow respondsToSelector:@selector(setStyleMask:)]) {
    1.40 @@ -950,7 +944,6 @@
    1.41          }
    1.42      }
    1.43      [pool release];
    1.44 -#endif
    1.45  }
    1.46  
    1.47  void