quakeforge/tools/Forge/Bundles/MapEdit/QuakeEd_main.m
2010-11-28 15:31:36 +09:00

28 lines
424 B
Objective-C

#include <AppKit/AppKit.h>
#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) {
[quakeed_i applicationDefined: evt];
} else {
[super sendEvent:evt];
}
}
@end
int
main (int argc, const char *argv[])
{
return NSApplicationMain (argc, argv);
}