2010-09-11 08:35:25 +00:00
|
|
|
#include <AppKit/AppKit.h>
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-12 05:31:59 +00:00
|
|
|
#include "QF/sys.h"
|
|
|
|
|
|
|
|
#include "QuakeEd.h"
|
|
|
|
|
|
|
|
@interface QuakeEdApp:NSApplication
|
|
|
|
-(void)sendEvent:(NSEvent *) evt;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation QuakeEdApp
|
|
|
|
|
|
|
|
-(void)sendEvent:(NSEvent *) evt;
|
|
|
|
{
|
|
|
|
if ([evt type] == NSApplicationDefined) {
|
|
|
|
Sys_Printf ("QuakeEdApp sendEvent\n");
|
|
|
|
[quakeed_i applicationDefined: evt];
|
|
|
|
} else {
|
|
|
|
[super sendEvent:evt];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2010-09-11 08:35:25 +00:00
|
|
|
int
|
2010-09-11 10:03:41 +00:00
|
|
|
main (int argc, const char *argv[])
|
2010-09-11 08:35:25 +00:00
|
|
|
{
|
2010-09-11 10:03:41 +00:00
|
|
|
return NSApplicationMain (argc, argv);
|
2003-03-18 19:48:24 +00:00
|
|
|
}
|