summaryrefslogtreecommitdiff
path: root/delegate_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-01 17:01:28 -0500
committerPietro Gagliardi <[email protected]>2014-03-01 17:01:28 -0500
commit56eb64429d64a7948ce8c40e823710a9ece876ec (patch)
tree123ce47499151dd81065bf61871c395db2c589e5 /delegate_darwin.go
parent9b4e30ccf9b1a1dc6367b0e6950fdd74cde88922 (diff)
Fixed most errors. Now I just need to add a sysData pool.
Diffstat (limited to 'delegate_darwin.go')
-rw-r--r--delegate_darwin.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/delegate_darwin.go b/delegate_darwin.go
index e903a13..dce4e4d 100644
--- a/delegate_darwin.go
+++ b/delegate_darwin.go
@@ -19,8 +19,6 @@ This creates a class goAppDelegate that will be used as the delegate for /everyt
// #include "objc_darwin.h"
// extern void appDelegate_uitask(id, SEL, id); /* from uitask_darwin.go */
// extern BOOL appDelegate_windowShouldClose(id, SEL, id);
-// /* because cgo doesn't like Nil */
-// static Class NilClass = Nil;
import "C"
var (
@@ -37,9 +35,7 @@ var (
)
func mkAppDelegate() error {
- var appdelegateclass C.Class
-
- appdelegateclass, err = makeDelegateClass(_goAppDelegate)
+ appdelegateclass, err := makeDelegateClass(_goAppDelegate)
if err != nil {
return fmt.Errorf("error creating NSApplication delegate: %v", err)
}