From 39c9a309b29c7e5e6260c1a133fe2fd504cef995 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Sun, 30 Dec 2012 21:16:40 +0100 Subject: [PATCH] Cleanup --- ogl_editor/src/macosx/RocketView.m | 42 -------------------------------------- 1 file changed, 42 deletions(-) diff --git a/ogl_editor/src/macosx/RocketView.m b/ogl_editor/src/macosx/RocketView.m index e56e91e..28416e5 100644 --- a/ogl_editor/src/macosx/RocketView.m +++ b/ogl_editor/src/macosx/RocketView.m @@ -97,48 +97,6 @@ static int getModifierFlags(int flags) } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - -- (void)windowShouldClose:(NSNotification *)aNotification -{ - NSAlert *alert = [NSAlert alertWithMessageText:@"\nDo you really want exit?" - defaultButton:@"Yes" alternateButton:NO otherButton:@"No" - informativeTextWithFormat:@""]; - - int result = [alert runModal]; - - if(result == NSOKButton) - { - - [NSApp terminate:self]; - } - else - { - [[NSNotificationCenter defaultCenter] removeObserver:self]; - //return NSTerminateCancel; - } -} - -- (void)windowWillClose:(NSNotification *)aNotification -{ - NSAlert *alert = [NSAlert alertWithMessageText:@"\nDo you really want exit?" - defaultButton:@"Yes" alternateButton:NO otherButton:@"No" - informativeTextWithFormat:@""]; - - int result = [alert runModal]; - - if(result == NSOKButton) - { - - [NSApp terminate:self]; - } - else - { - [[NSNotificationCenter defaultCenter] removeObserver:self]; - //return NSTerminateCancel; - } -} - -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - (void)keyDown:(NSEvent *)theEvent {