summaryrefslogtreecommitdiff
path: root/uitask_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-01 04:28:47 -0500
committerPietro Gagliardi <[email protected]>2014-03-01 04:28:47 -0500
commitd611722ac7f99ab6e63e713aca7fd0f4b83407e2 (patch)
tree943b81f0bdece6ac152425fec5c64012edd39ed5 /uitask_darwin.go
parent5abea5cc61cc44bdcc7e6bd4b491844d7c5dd5d6 (diff)
Added _setDelegate to the common Objective-C selectors list and added a clarity wrapper function objc_setDelegate().
Diffstat (limited to 'uitask_darwin.go')
-rw-r--r--uitask_darwin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/uitask_darwin.go b/uitask_darwin.go
index 8c15cf4..ccc659d 100644
--- a/uitask_darwin.go
+++ b/uitask_darwin.go
@@ -97,7 +97,7 @@ func mainThread() {
return
}
appDelegate := objc_new(objc_getClass(_goAppDelegate))
- C.objc_msgSend_id(_NSApp, _setDelegate, appDelegate)
+ objc_setDelegate(_NSApp, appDelegate)
// and that's it, really
C.objc_msgSend_noargs(_NSApp, _run)
}