diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-28 18:30:06 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-28 18:30:06 -0500 |
| commit | 8af591388f3bc0295ba196135452e29e845925a8 (patch) | |
| tree | 72847d5b5a96f5608b6359a33bc2755a7d336bfc /darwintest/newtypes.go | |
| parent | e4339d3c49453794dee1b9f0f3a48bd7ce8cae6f (diff) | |
Split most of the objc_msgSend() wrappers into a C header file for convenience. The NSRect functions require special handling because of Apple stupidities that will be discussed when I get to that.
Diffstat (limited to 'darwintest/newtypes.go')
| -rw-r--r-- | darwintest/newtypes.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/darwintest/newtypes.go b/darwintest/newtypes.go index 4bb04f7..eface0d 100644 --- a/darwintest/newtypes.go +++ b/darwintest/newtypes.go @@ -9,16 +9,11 @@ import ( // #cgo CFLAGS: -Dqqq // #cgo LDFLAGS: -lobjc -framework Foundation // #include <stdlib.h> -// #include <objc/message.h> -// #include <objc/objc.h> -// #include <objc/runtime.h> +// #include "objc_darwin.h" // extern void windowShouldClose(id, SEL, id); -// extern id objc_msgSend_id(id, SEL, id); // extern void buttonClicked(id, SEL, id); // extern void gotNotification(id, SEL, id); -// extern id objc_msgSend_id_id_id(id, SEL, id, id, id); // /* cgo doesn't like nil or Nil */ -// extern id objc_msgSend_noargs(id, SEL); // extern Class NilClass; /* in runtimetest.go because of cgo limitations */ // extern id Nilid; import "C" |
