diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-30 23:01:08 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-30 23:01:08 -0400 |
| commit | 155899c65ed32245e2ccad4197a10c77017d835b (patch) | |
| tree | 4c337130ff5d1640efc1e94258ab3b8a9eef0c55 /objc_darwin.go | |
| parent | 3d4e54822dc6117306d5a4ac0e79017c4810b657 (diff) | |
Out with the old...
Diffstat (limited to 'objc_darwin.go')
| -rw-r--r-- | objc_darwin.go | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/objc_darwin.go b/objc_darwin.go deleted file mode 100644 index 15027e4..0000000 --- a/objc_darwin.go +++ /dev/null @@ -1,39 +0,0 @@ -// 28 february 2014 - -package ui - -import ( - "unsafe" -) - -// #include <stdlib.h> -// #include "objc_darwin.h" -import "C" - -func toNSString(str string) C.id { - cstr := C.CString(str) - defer C.free(unsafe.Pointer(cstr)) - - return C.toNSString(cstr) -} - -func fromNSString(str C.id) string { - return C.GoString(C.fromNSString(str)) -} - -func toBOOL(what bool) C.BOOL { - if what { - return C.YES - } - return C.NO -} - -// These consolidate the NSScrollView code (used by listbox_darwin.go and area_darwin.go) into a single place. - -func makeScrollView(content C.id) C.id { - return C.makeScrollView(content) -} - -func getScrollViewContent(scrollview C.id) C.id { - return C.scrollViewContent(scrollview) -} |
