mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-12 00:01:43 +00:00
29 lines
465 B
Objective-C
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);
|
|
}
|