quakeforge/tools/Forge/Bundles/MapEdit/QuakeEd_main.m

28 lines
421 B
Mathematica
Raw Normal View History

#include <AppKit/AppKit.h>
2010-09-12 05:31:59 +00:00
#include "QF/sys.h"
#include "QuakeEd.h"
@interface QuakeEdApp: NSApplication
- (void) sendEvent: (NSEvent *)evt;
2010-09-12 05:31:59 +00:00
@end
@implementation QuakeEdApp
- (void) sendEvent: (NSEvent *)evt;
2010-09-12 05:31:59 +00:00
{
if ([evt type] == NSApplicationDefined)
2010-09-12 05:31:59 +00:00
[quakeed_i applicationDefined: evt];
else
[super sendEvent: evt];
2010-09-12 05:31:59 +00:00
}
@end
int
main (int argc, const char *argv[])
{
return NSApplicationMain (argc, argv);
}