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"
|
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
@interface QuakeEdApp: NSApplication
|
|
|
|
- (void) sendEvent: (NSEvent *)evt;
|
2010-09-12 05:31:59 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation QuakeEdApp
|
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
- (void) sendEvent: (NSEvent *)evt;
|
2010-09-12 05:31:59 +00:00
|
|
|
{
|
2010-09-29 20:09:11 +00:00
|
|
|
if ([evt type] == NSApplicationDefined)
|
2010-09-12 05:31:59 +00:00
|
|
|
[quakeed_i applicationDefined: evt];
|
2010-09-29 20:09:11 +00:00
|
|
|
else
|
|
|
|
[super sendEvent: evt];
|
2010-09-12 05:31:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@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
|
|
|
}
|