summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-01 15:33:17 -0500
committerPietro Gagliardi <[email protected]>2014-03-01 15:33:17 -0500
commitcd7c127fcc9ce250a560fa0efd43ad3a430bd8d0 (patch)
tree7bf0a5596964a1bd98fcce3a1f201449996e740e
parent2e869615d35f36462ab3978b2e518d91a1633770 (diff)
Oops, accidentally removed the code that actually makes the appdelegateclass. Almost working...
-rw-r--r--uitask_darwin.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/uitask_darwin.go b/uitask_darwin.go
index 2fb6b45..2a32f86 100644
--- a/uitask_darwin.go
+++ b/uitask_darwin.go
@@ -87,6 +87,11 @@ func initCocoa() (NSApp C.id, appDelegate C.id, err error) {
var appdelegateclass C.Class
NSApp = C.objc_msgSend_noargs(_NSApplication, _sharedApplication)
+ appdelegateclass, err = makeDelegateClass(_goAppDelegate)
+ if err != nil {
+ err = fmt.Errorf("error creating NSApplication delegate: %v", err)
+ return
+ }
err = addDelegateMethod(appdelegateclass, _uitask, C.appDelegate_uitask)
if err != nil {
err = fmt.Errorf("error adding NSApplication delegate uitask: method (to do UI tasks): %v", err)