mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-18 10:41:40 +00:00
28 lines
424 B
Objective-C
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);
|
|
}
|