summaryrefslogtreecommitdiff
path: root/delegate_darwin.go
diff options
context:
space:
mode:
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)
}