summaryrefslogtreecommitdiff
path: root/bleh_darwin.m
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-15 23:04:30 -0400
committerPietro Gagliardi <[email protected]>2014-05-15 23:04:30 -0400
commit08e86ea9b3e4d0b24f592ab9d2f5650de40f6bed (patch)
treef414e43800f01e054473a444e7c1848cbd7a5491 /bleh_darwin.m
parent3b4924a156246928ac672c5ce3321a6f43d3b4e9 (diff)
Removed the dummy NSEvent code from bleh_darwin.m and rewrote it in Objective-C in delegateuitask_darwin.m. And now to nuke bleh_darwin.m and change all the int64_ts to intptr_ts and merge the .h files...
Diffstat (limited to 'bleh_darwin.m')
-rw-r--r--bleh_darwin.m17
1 files changed, 0 insertions, 17 deletions
diff --git a/bleh_darwin.m b/bleh_darwin.m
index 7bb9344..b2f0fe7 100644
--- a/bleh_darwin.m
+++ b/bleh_darwin.m
@@ -64,20 +64,3 @@ void initBleh()
s_initTrackingArea = sel_getUid("initWithRect:options:owner:userInfo:");
}
-/*
-See uitask_darwin.go: we need to synthesize a NSEvent so -[NSApplication stop:] will work. We cannot simply init the default NSEvent though (it throws an exception) so we must do it "the right way". This involves a very convoluted initializer; we'll just do it here to keep things clean on the Go side (this will only be run once anyway, on program exit).
-*/
-
-id makeDummyEvent()
-{
- return objc_msgSend(c_NSEvent, s_newEvent,
- (NSUInteger) NSApplicationDefined, /* otherEventWithType: */
- NSMakePoint(0, 0), /* location: */
- (NSUInteger) 0, /* modifierFlags: */
- (double) 0, /* timestamp: */
- (NSInteger) 0, /* windowNumber: */
- nil, /* context: */
- (short) 0, /* subtype: */
- (NSInteger) 0, /* data1: */
- (NSInteger) 0); /* data2: */
-}