diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-13 09:40:19 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-13 09:40:19 -0400 |
| commit | 62b3c26107a90764e95b8ad0b87e4d021891f4d6 (patch) | |
| tree | f19080e2ed6a1497b20655191ccddfd8b407faf3 /uitask_darwin.go | |
| parent | 11ef974b4875216b401584065d59e32b629bf5bc (diff) | |
Removed the class creation at runtime stuff and its residue from the Go files. This also cleans up the initialization stuff on the Go side too.
Diffstat (limited to 'uitask_darwin.go')
| -rw-r--r-- | uitask_darwin.go | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/uitask_darwin.go b/uitask_darwin.go index 6b886cf..ad63d29 100644 --- a/uitask_darwin.go +++ b/uitask_darwin.go @@ -69,16 +69,11 @@ var ( func initCocoa() (err error) { C.initBleh() // initialize bleh_darwin.m functions - err = mkAppDelegate() - if err != nil { - return - } + makeAppDelegate() if C.initCocoa(appDelegate) != C.YES { - err = fmt.Errorf("error setting NSApplication activation policy (basically identifies our program as a separate program; needed for several things, such as Dock icon, application menu, window resizing, etc.) (unknown reason)") - return + return fmt.Errorf("error setting NSApplication activation policy (basically identifies our program as a separate program; needed for several things, such as Dock icon, application menu, window resizing, etc.) (unknown reason)") } - err = mkAreaClass() - return + return nil } //export appDelegate_uitask |
