diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-01 15:33:17 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-01 15:33:17 -0500 |
| commit | cd7c127fcc9ce250a560fa0efd43ad3a430bd8d0 (patch) | |
| tree | 7bf0a5596964a1bd98fcce3a1f201449996e740e /uitask_darwin.go | |
| parent | 2e869615d35f36462ab3978b2e518d91a1633770 (diff) | |
Oops, accidentally removed the code that actually makes the appdelegateclass. Almost working...
Diffstat (limited to 'uitask_darwin.go')
| -rw-r--r-- | uitask_darwin.go | 5 |
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) |
