diff --git a/bleh_darwin.m b/bleh_darwin.m index 0e1cce5..e324133 100644 --- a/bleh_darwin.m +++ b/bleh_darwin.m @@ -21,9 +21,6 @@ though this is not always the case. #include #include -/* exception to the above: cgo doesn't like Nil and delegate_darwin.go has //export so I can't have this there */ -Class NilClass = Nil; - /* used by listbox_darwin.go; requires NSString */ id *_NSObservedObjectKey = (id *) (&NSObservedObjectKey); diff --git a/objc_darwin.go b/objc_darwin.go index 70406f5..d7e8f7a 100644 --- a/objc_darwin.go +++ b/objc_darwin.go @@ -10,6 +10,8 @@ import ( // #cgo LDFLAGS: -lobjc -framework Foundation // #include // #include "objc_darwin.h" +// /* cgo doesn't like Nil */ +// Class NilClass = Nil; import "C" func objc_getClass(class string) C.id { diff --git a/objc_darwin.h b/objc_darwin.h index 4c1b77a..05f39e3 100644 --- a/objc_darwin.h +++ b/objc_darwin.h @@ -20,9 +20,6 @@ The format should be self-explanatory. #include -/* for delegate_darwin.go */ -extern Class NilClass; - /* for listbox_darwin.go */ extern id *_NSObservedObjectKey;