Removed NilClass from the shared Mac OS X files (objc_darwin.h and bleh_darwin.m) as the //export issue that required that no longer applies.
This commit is contained in:
parent
b97e6b864f
commit
338cbc0540
|
@ -21,9 +21,6 @@ though this is not always the case.
|
|||
#include <AppKit/NSBitmapImageRep.h>
|
||||
#include <AppKit/NSCell.h>
|
||||
|
||||
/* 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);
|
||||
|
||||
|
|
|
@ -10,6 +10,8 @@ import (
|
|||
// #cgo LDFLAGS: -lobjc -framework Foundation
|
||||
// #include <stdlib.h>
|
||||
// #include "objc_darwin.h"
|
||||
// /* cgo doesn't like Nil */
|
||||
// Class NilClass = Nil;
|
||||
import "C"
|
||||
|
||||
func objc_getClass(class string) C.id {
|
||||
|
|
|
@ -20,9 +20,6 @@ The format should be self-explanatory.
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
/* for delegate_darwin.go */
|
||||
extern Class NilClass;
|
||||
|
||||
/* for listbox_darwin.go */
|
||||
extern id *_NSObservedObjectKey;
|
||||
|
||||
|
|
Loading…
Reference in New Issue