src/video/cocoa/SDL_cocoawindow.m
changeset 5404 6717e01acbe0
parent 5401 ccaccc76a196
child 5406 1517da4ab6b1
--- a/src/video/cocoa/SDL_cocoawindow.m	Sun Feb 27 20:06:45 2011 -0800
+++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Feb 27 21:17:06 2011 -0800
@@ -63,8 +63,6 @@
     } else {
         [window setDelegate:self];
     }
-    [center addObserver:self selector:@selector(windowDidHide:) name:NSApplicationDidHideNotification object:NSApp];
-    [center addObserver:self selector:@selector(windowDidUnhide:) name:NSApplicationDidUnhideNotification object:NSApp];
 
     [window setNextResponder:self];
     [window setAcceptsMouseMovedEvents:YES];
@@ -94,8 +92,6 @@
     } else {
         [window setDelegate:nil];
     }
-    [center removeObserver:self name:NSApplicationDidHideNotification object:NSApp];
-    [center removeObserver:self name:NSApplicationDidUnhideNotification object:NSApp];
 
     if ([window nextResponder] == self) {
         [window setNextResponder:nil];
@@ -206,16 +202,6 @@
     }
 }
 
-- (void)windowDidHide:(NSNotification *)aNotification
-{
-    SDL_SendWindowEvent(_data->window, SDL_WINDOWEVENT_HIDDEN, 0, 0);
-}
-
-- (void)windowDidUnhide:(NSNotification *)aNotification
-{
-    SDL_SendWindowEvent(_data->window, SDL_WINDOWEVENT_SHOWN, 0, 0);
-}
-
 - (void)mouseDown:(NSEvent *)theEvent
 {
     int button;