From 518a5ddbf15d50a254c732a80d5907ef8878abe0 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 15 Apr 2015 18:49:45 -0400 Subject: Split all OS backends into their own folders. --- new/main_darwin.m | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 new/main_darwin.m (limited to 'new/main_darwin.m') diff --git a/new/main_darwin.m b/new/main_darwin.m deleted file mode 100644 index 8663b58..0000000 --- a/new/main_darwin.m +++ /dev/null @@ -1,27 +0,0 @@ -// 6 april 2015 -#import "uipriv_darwin.h" - -// #qo LDFLAGS: -lobjc -framework Foundation -framework AppKit - -void uiMain(void) -{ - [NSApp run]; -} - -void uiQuit(void) -{ - NSEvent *e; - - [NSApp stop:NSApp]; - // stop: won't register until another event has passed; let's synthesize one - e = [NSEvent otherEventWithType:NSApplicationDefined - location:NSZeroPoint - modifierFlags:0 - timestamp:[[NSProcessInfo processInfo] systemUptime] - windowNumber:0 - context:[NSGraphicsContext currentContext] - subtype:0 - data1:0 - data2:0]; - [NSApp postEvent:e atStart:NO]; // let pending events take priority (this is what PostQuitMessage() on Windows does so we have to do it here too for parity; thanks to mikeash in irc.freenode.net/#macdev for confirming that this parameter should indeed be NO) -} -- cgit v1.2.3