src/video/cocoa/SDL_cocoawindow.m
changeset 5404 6717e01acbe0
parent 5401 ccaccc76a196
child 5406 1517da4ab6b1
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sun Feb 27 20:06:45 2011 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Feb 27 21:17:06 2011 -0800
     1.3 @@ -63,8 +63,6 @@
     1.4      } else {
     1.5          [window setDelegate:self];
     1.6      }
     1.7 -    [center addObserver:self selector:@selector(windowDidHide:) name:NSApplicationDidHideNotification object:NSApp];
     1.8 -    [center addObserver:self selector:@selector(windowDidUnhide:) name:NSApplicationDidUnhideNotification object:NSApp];
     1.9  
    1.10      [window setNextResponder:self];
    1.11      [window setAcceptsMouseMovedEvents:YES];
    1.12 @@ -94,8 +92,6 @@
    1.13      } else {
    1.14          [window setDelegate:nil];
    1.15      }
    1.16 -    [center removeObserver:self name:NSApplicationDidHideNotification object:NSApp];
    1.17 -    [center removeObserver:self name:NSApplicationDidUnhideNotification object:NSApp];
    1.18  
    1.19      if ([window nextResponder] == self) {
    1.20          [window setNextResponder:nil];
    1.21 @@ -206,16 +202,6 @@
    1.22      }
    1.23  }
    1.24  
    1.25 -- (void)windowDidHide:(NSNotification *)aNotification
    1.26 -{
    1.27 -    SDL_SendWindowEvent(_data->window, SDL_WINDOWEVENT_HIDDEN, 0, 0);
    1.28 -}
    1.29 -
    1.30 -- (void)windowDidUnhide:(NSNotification *)aNotification
    1.31 -{
    1.32 -    SDL_SendWindowEvent(_data->window, SDL_WINDOWEVENT_SHOWN, 0, 0);
    1.33 -}
    1.34 -
    1.35  - (void)mouseDown:(NSEvent *)theEvent
    1.36  {
    1.37      int button;