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

29 lines
465 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) {
Sys_Printf ("QuakeEdApp sendEvent\n");
[quakeed_i applicationDefined: evt];
} else {
[super sendEvent:evt];
}
}
@end
int
main (int argc, const char *argv[])
{
return NSApplicationMain (argc, argv);
}