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:
Pietro Gagliardi 2014-04-05 12:39:27 -04:00
parent b97e6b864f
commit 338cbc0540
3 changed files with 2 additions and 6 deletions

View File

@ -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);

View File

@ -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 {

View File

@ -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;