Line data Source code
1 0 : /* 2 : 3 : OoliteApp.h 4 : 5 : This is a subclass of NSApplication for Oolite. 6 : 7 : It gets around problems with the system intercepting certain events (NSKeyDown 8 : and NSKeyUp) before MyOpenGLView gets to see them, it does this by sending 9 : those events to MyOpenGLView regardless of any other processing NSApplication 10 : will do with them. 11 : 12 : Oolite 13 : Copyright (C) 2004-2013 Giles C Williams and contributors 14 : 15 : This program is free software; you can redistribute it and/or 16 : modify it under the terms of the GNU General Public License 17 : as published by the Free Software Foundation; either version 2 18 : of the License, or (at your option) any later version. 19 : 20 : This program is distributed in the hope that it will be useful, 21 : but WITHOUT ANY WARRANTY; without even the implied warranty of 22 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 : GNU General Public License for more details. 24 : 25 : You should have received a copy of the GNU General Public License 26 : along with this program; if not, write to the Free Software 27 : Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 28 : MA 02110-1301, USA. 29 : 30 : */ 31 : 32 : #import "OOCocoa.h" 33 : 34 : @class GameController; 35 : 36 : 37 0 : @interface OoliteApp: NSApplication 38 : { 39 : @private 40 0 : IBOutlet NSWindow *_gameWindow; 41 0 : IBOutlet GameController *_gameController; 42 0 : NSString *_exitContext; 43 : } 44 : 45 0 : - (void) setExitContext:(NSString *)exitContext; 46 : 47 : @end