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 {