From 56eb64429d64a7948ce8c40e823710a9ece876ec Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 1 Mar 2014 17:01:28 -0500 Subject: Fixed most errors. Now I just need to add a sysData pool. --- delegate_darwin.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'delegate_darwin.go') 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) } -- cgit v1.2.3