summaryrefslogtreecommitdiff
path: root/new/darwin/main.m
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-16 20:33:28 -0400
committerPietro Gagliardi <[email protected]>2015-04-16 20:33:28 -0400
commite34c561ed5bedeb180437ec165882b98d70d38c1 (patch)
treed095e5db16d7a23e883526c8c1d3c524639c97cf /new/darwin/main.m
parentde9d72299fb89a8b6cdc8963cd6b6ae708a81e80 (diff)
Split the rewrite into a new repository.
Diffstat (limited to 'new/darwin/main.m')
-rw-r--r--new/darwin/main.m27
1 files changed, 0 insertions, 27 deletions
diff --git a/new/darwin/main.m b/new/darwin/main.m
deleted file mode 100644
index 8663b58..0000000
--- a/new/darwin/main.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)
-}